Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Facades;
  3. use App\Contracts\CurrencyHandler;
  4. use Illuminate\Support\Facades\Facade;
  5. /**
  6. * @method static bool isEnabled()
  7. * @method static array|null getSupportedCurrencies()
  8. * @method static array|null getCachedExchangeRates(string $baseCurrency, array $targetCurrencies)
  9. * @method static float|null getCachedExchangeRate(string $baseCurrency, string $targetCurrency)
  10. *
  11. * @see CurrencyHandler
  12. */
  13. class Forex extends Facade
  14. {
  15. protected static function getFacadeAccessor(): string
  16. {
  17. return CurrencyHandler::class;
  18. }
  19. /**
  20. * Determine if the Currency Exchange Rate feature is disabled.
  21. */
  22. public static function isDisabled(): bool
  23. {
  24. return ! static::isEnabled();
  25. }
  26. }