Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function getExchangeRates(): array |
||
38 | { |
||
39 | try { |
||
40 | $response = $this->client->request(self::HTTP_GET, $this->exchangeRatesUrl); |
||
41 | } catch (Exception $e) { |
||
42 | throw new ExchangeRatesRequestFailedException($e); |
||
43 | } |
||
44 | |||
45 | $mapper = new ExchangeRatesMapper(); |
||
46 | return $mapper->map($response); |
||
47 | } |
||
48 | |||
49 | } |