Added new Money provider

This commit is contained in:
Juan Pablo Vial
2025-10-24 18:35:52 -03:00
parent 6e32b1debc
commit 04a725e517
8 changed files with 178 additions and 31 deletions

View File

@ -13,4 +13,5 @@ interface Provider
* @throws EmptyResponse
*/
public function get(string $money_symbol, ?DateTimeInterface $dateTime = null): float;
public function supported(string $money_symbol): bool;
}

View File

@ -0,0 +1,13 @@
<?php
namespace Incoviba\Common\Ideal\Money;
use Incoviba\Common\Define;
abstract class Provider implements Define\Money\Provider
{
protected array $supportedMap = [];
public function supported(string $money_symbol): bool
{
return in_array(strtolower($money_symbol), array_keys($this->supportedMap), true);
}
}