1 | <?php |
||
11 | class EcbClient implements EcbClientInterface |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var Client |
||
16 | */ |
||
17 | private $client; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $exchangeRatesUrl; |
||
23 | |||
24 | /** |
||
25 | * @param string $exchangeRatesUrl |
||
26 | */ |
||
27 | public function __construct(string $exchangeRatesUrl = self::DEFAULT_EXCHANGE_RATES_URL) |
||
32 | |||
33 | /** |
||
34 | * @throws ExchangeRatesRequestFailedException |
||
35 | * @return ExchangeRate[] |
||
36 | */ |
||
37 | public function getExchangeRates(): array |
||
48 | |||
49 | } |