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 data provider that reads currency-related data from a resource 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
__construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider)
Creates a data provider that reads currency-related data from a resource bundle.
getFractionDigits($currency)
Data provider for {@link \Symfony\Component\Intl\Currency::getFractionDigits()}.
getRoundingIncrement($currency)
Data provider for {@link \Symfony\Component\Intl\Currency::getRoundingIncrement()}.
getNumericCode($currency)
Data provider for {@link \Symfony\Component\Intl\Currency::getNumericCode()}.
forNumericCode($numericCode)
Data provider for {@link \Symfony\Component\Intl\Currency::forNumericCode()}.
string|null
getCurrencySymbol(string $currency, string $displayLocale = null)
Returns the symbol used for a currency.