| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | |||
| 59 | $mapper = new ExchangeRatesMapper(); |
||
| 60 | return $mapper->map($response); |
||
| 61 | } |
||
| 62 | |||
| 64 |