ResourceBundle\CurrencyBundleInterface (Component\Intl)
Symfony\Component\Intl\ResourceBundle\CurrencyBundleInterface
interface CurrencyBundleInterface implements ResourceBundleInterface
Gives access to currency-related ICU data.
Methods
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. |
Details
public string[] getLocales()
Returns the list of locales that this bundle supports.
public string|null getCurrencySymbol(string $currency, string $displayLocale = null)
Returns the symbol used for a currency.
public string|null getCurrencyName(string $currency, string $displayLocale = null)
Returns the name of a currency.
public string[] getCurrencyNames(string $displayLocale = null)
Returns the names of all known currencies.
public int|null getFractionDigits(string $currency)
Returns the number of digits after the comma of a currency.
public 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.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Intl/ResourceBundle/CurrencyBundleInterface.html