const en Money y multi provider

This commit is contained in:
Juan Pablo Vial
2025-05-05 18:15:29 -04:00
parent 594cb68b09
commit 3ced9e40b1
2 changed files with 50 additions and 33 deletions

View File

@ -9,10 +9,6 @@ use Incoviba\Common\Implement\Exception\EmptyResponse;
class MiIndicador implements Provider
{
const UF = 'uf';
const IPC = 'ipc';
const USD = 'dolar';
public function __construct(protected ClientInterface $client) {}
/**
@ -42,11 +38,4 @@ class MiIndicador implements Provider
}
return $json->serie[0]->valor;
}
public static function getSymbol(string $identifier): string
{
$upper = strtoupper($identifier);
$output = '';
eval("\$output = self::{$upper};");
return $output;
}
}