2023-09-13 18:51:46 -03:00
|
|
|
<?php
|
|
|
|
namespace Incoviba\Common\Define\Money;
|
|
|
|
|
|
|
|
use DateTimeInterface;
|
2025-03-03 14:57:22 -03:00
|
|
|
use Incoviba\Common\Implement\Exception\EmptyResponse;
|
2023-09-13 18:51:46 -03:00
|
|
|
|
|
|
|
interface Provider
|
|
|
|
{
|
2025-03-03 14:57:22 -03:00
|
|
|
/**
|
|
|
|
* @param string $money_symbol
|
2025-07-22 13:18:00 +00:00
|
|
|
* @param ?DateTimeInterface $dateTime = null
|
2025-03-03 14:57:22 -03:00
|
|
|
* @return float
|
|
|
|
* @throws EmptyResponse
|
|
|
|
*/
|
2025-07-22 13:18:00 +00:00
|
|
|
public function get(string $money_symbol, ?DateTimeInterface $dateTime = null): float;
|
2023-09-13 18:51:46 -03:00
|
|
|
}
|