| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class LatestExchangeRatesEndpoint extends AbstractBaseEndpoint |
||
| 14 | { |
||
| 15 | public const ENDPOINT_URI = 'latest'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Returns the latest spot price for the supported currencies. |
||
| 19 | * |
||
| 20 | * @param string $baseCurrency base currency alpha3 code (if different than EUR) |
||
| 21 | * @param array $symbols array of alpha3 codes to filter the response |
||
| 22 | * |
||
| 23 | * @throws InvalidCurrencyCodeException |
||
| 24 | * @throws GuzzleException |
||
| 25 | */ |
||
| 26 | public function latest(string $baseCurrency = null, array $symbols = []): ResponseInterface |
||
| 45 |