You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CurrencyHandler.php 526B

123456789101112131415161718
  1. <?php
  2. namespace App\Contracts;
  3. interface CurrencyHandler
  4. {
  5. public function isEnabled(): bool;
  6. public function getSupportedCurrencies(): ?array;
  7. public function getExchangeRates(string $baseCurrency, array $targetCurrencies): ?array;
  8. public function getCachedExchangeRates(string $baseCurrency, array $targetCurrencies): ?array;
  9. public function getCachedExchangeRate(string $baseCurrency, string $targetCurrency): ?float;
  10. public function updateCurrencyRatesCache(string $baseCurrency): ?array;
  11. }