CurrencyInterface.php 580 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Locale;
  7. /**
  8. * Provides access to currency config information
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface CurrencyInterface
  14. {
  15. /**
  16. * Retrieve default currency code
  17. *
  18. * @return string
  19. */
  20. public function getDefaultCurrency();
  21. /**
  22. * Create Currency object for current locale
  23. *
  24. * @param string $currency
  25. * @return \Magento\Framework\Currency
  26. */
  27. public function getCurrency($currency);
  28. }