Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | /** |
||
48 | * @throws ExchangeRatesRequestFailedException |
||
49 | * @return ExchangeRate[] |
||
50 | */ |
||
51 | public function getExchangeRates(): array |
||
52 | { |
||
53 | try { |
||
54 | $response = $this->client->request(self::HTTP_GET, $this->exchangeRatesUrl); |
||
55 | } catch (Exception $e) { |
||
56 | throw new ExchangeRatesRequestFailedException($e); |
||
57 | } |
||
58 | |||
64 |