CurrencyBundle
class CurrencyBundle extends CurrencyDataProvider implements CurrencyBundleInterface
Default implementation of {@link CurrencyBundleInterface}.
Constants
INDEX_SYMBOL |
|
INDEX_NAME |
|
INDEX_FRACTION_DIGITS |
|
INDEX_ROUNDING_INCREMENT |
|
Methods
Creates a new currency bundle.
Data provider for {@link \Symfony\Component\Intl\Currency::getFractionDigits()}.
Data provider for {@link \Symfony\Component\Intl\Currency::getRoundingIncrement()}.
Data provider for {@link \Symfony\Component\Intl\Currency::getNumericCode()}.
Data provider for {@link \Symfony\Component\Intl\Currency::forNumericCode()}.
Returns the symbol used for a currency.
Returns the name of a currency.
Returns the names of all known currencies.
Returns the list of locales that this bundle supports.
Details
at line line 40
__construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider)
Creates a new currency bundle.
in CurrencyDataProvider at line line 58
getCurrencies()
in CurrencyDataProvider at line line 63
getSymbol($currency, $displayLocale = null)
in CurrencyDataProvider at line line 72
getName($currency, $displayLocale = null)
in CurrencyDataProvider at line line 81
getNames($displayLocale = null)
at line line 86
getFractionDigits($currency)
Data provider for {@link \Symfony\Component\Intl\Currency::getFractionDigits()}.
at line line 98
getRoundingIncrement($currency)
Data provider for {@link \Symfony\Component\Intl\Currency::getRoundingIncrement()}.
in CurrencyDataProvider at line line 140
getNumericCode($currency)
Data provider for {@link \Symfony\Component\Intl\Currency::getNumericCode()}.
in CurrencyDataProvider at line line 148
forNumericCode($numericCode)
Data provider for {@link \Symfony\Component\Intl\Currency::forNumericCode()}.
at line line 50
string|null
getCurrencySymbol(string $currency, string $displayLocale = null)
Returns the symbol used for a currency.
at line line 62
string|null
getCurrencyName(string $currency, string $displayLocale = null)
Returns the name of a currency.
at line line 74
string[]
getCurrencyNames(string $displayLocale = null)
Returns the names of all known currencies.
at line line 110
string[]
getLocales()
Returns the list of locales that this bundle supports.