diff options
author | Mario <mario@mariovavti.com> | 2018-01-09 09:00:20 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-01-09 09:00:20 +0100 |
commit | 4f4d0e416eac87121898b8a27b1afa6065ff17a2 (patch) | |
tree | aae7f2582b2b9c6596dcbf87c06a836434140830 /vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php | |
parent | 22c89b6c660e185d5c5c6362acf23b145d932d15 (diff) | |
parent | 8fde0f01b8472082158b38386046ed606bcfbc49 (diff) | |
download | volse-hubzilla-3.0.tar.gz volse-hubzilla-3.0.tar.bz2 volse-hubzilla-3.0.zip |
Merge branch '3.0RC'3.0
Diffstat (limited to 'vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php')
-rw-r--r-- | vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php b/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php new file mode 100644 index 000000000..f0a091969 --- /dev/null +++ b/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php @@ -0,0 +1,41 @@ +<?php + +namespace CommerceGuys\Intl\Currency; + +/** + * Currency repository interface. + */ +interface CurrencyRepositoryInterface +{ + /** + * Returns a currency instance matching the provided currency code. + * + * @param string $currencyCode The currency code. + * @param string $locale The locale (i.e. fr-FR). + * @param string $fallbackLocale A fallback locale (i.e "en"). + * + * @return CurrencyInterface + */ + public function get($currencyCode, $locale = null, $fallbackLocale = null); + + /** + * Returns all currency instances. + * + * @param string $locale The locale (i.e. fr-FR). + * @param string $fallbackLocale A fallback locale (i.e "en"). + * + * @return array An array of currencies implementing the CurrencyInterface, + * keyed by currency code. + */ + public function getAll($locale = null, $fallbackLocale = null); + + /** + * Returns a list of currencies. + * + * @param string $locale The locale (i.e. fr-FR). + * @param string $fallbackLocale A fallback locale (i.e "en"). + * + * @return array An array of currency names, keyed by currency code. + */ + public function getList($locale = null, $fallbackLocale = null); +} |