const en Money y multi provider
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user