interface CurrencyBundleInterface implements ResourceBundleInterface
Gives access to currency-related ICU data.
string[] | getLocales() Returns the list of locales that this bundle supports. | from ResourceBundleInterface |
string|null | getCurrencySymbol(string $currency, string $displayLocale = null) Returns the symbol used for a currency. | |
string|null | getCurrencyName(string $currency, string $displayLocale = null) Returns the name of a currency. | |
string[] | getCurrencyNames(string $displayLocale = null) Returns the names of all known currencies. | |
int|null | getFractionDigits(string $currency) Returns the number of digits after the comma of a currency. | |
float|int|null | getRoundingIncrement(string $currency) Returns the rounding increment of a currency. |
Returns the list of locales that this bundle supports.
string[] | A list of locale codes |
Returns the symbol used for a currency.
string | $currency | A currency code (e.g. "EUR") |
string | $displayLocale | Optional. The locale to return the result in Defaults to {@link \Locale::getDefault()}. |
string|null | The currency symbol or NULL if not found |
Returns the name of a currency.
string | $currency | A currency code (e.g. "EUR") |
string | $displayLocale | Optional. The locale to return the name in Defaults to {@link \Locale::getDefault()}. |
string|null | The name of the currency or NULL if not found |
Returns the names of all known currencies.
string | $displayLocale | Optional. The locale to return the names in Defaults to {@link \Locale::getDefault()}. |
string[] | A list of currency names indexed by currency codes |
Returns the number of digits after the comma of a currency.
string | $currency | A currency code (e.g. "EUR") |
int|null | The number of digits after the comma or NULL if not found |
Returns the rounding increment of a currency.
The rounding increment indicates to which number a currency is rounded. For example, 1230 rounded to the nearest 50 is 1250. 1.234 rounded to the nearest 0.65 is 1.3.
string | $currency | A currency code (e.g. "EUR") |
float|int|null | The rounding increment or NULL if not found |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Intl/ResourceBundle/CurrencyBundleInterface.html