CurrencyBundleInterface
interface CurrencyBundleInterface implements ResourceBundleInterface
Gives access to currency-related ICU data.
Methods
Returns the list of locales that this bundle supports.
Returns the symbol used for a currency.
Returns the name of a currency.
Returns the names of all known currencies.
Returns the number of digits after the comma of a currency.
Returns the rounding increment of a currency.
Details
in ResourceBundleInterface at line line 26
string[]
getLocales()
Returns the list of locales that this bundle supports.
at line line 30
string|null
getCurrencySymbol(string $currency, string $displayLocale = null)
Returns the symbol used for a currency.
at line line 41
string|null
getCurrencyName(string $currency, string $displayLocale = null)
Returns the name of a currency.
at line line 51
string[]
getCurrencyNames(string $displayLocale = null)
Returns the names of all known currencies.
at line line 60
int|null
getFractionDigits(string $currency)
Returns the number of digits after the comma of a currency.
at line line 73
float|int|null
getRoundingIncrement(string $currency)
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.