class CurrencyDataProvider

Data provider for currency-related data.

Constants

INDEX_SYMBOL

INDEX_NAME

INDEX_FRACTION_DIGITS

INDEX_ROUNDING_INCREMENT

Methods

__construct(string $path, BundleEntryReaderInterface $reader)

Creates a data provider that reads currency-related data from a resource bundle.

getCurrencies()

No description

getSymbol($currency, $displayLocale = null)

No description

getName($currency, $displayLocale = null)

No description

getNames($displayLocale = null)

No description

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()}.

Details

at line 42
__construct(string $path, BundleEntryReaderInterface $reader)

Creates a data provider that reads currency-related data from a resource bundle.

Parameters

string $path The path to the resource bundle
BundleEntryReaderInterface $reader The reader for reading the resource bundle

at line 48
getCurrencies()

at line 53
getSymbol($currency, $displayLocale = null)

Parameters

$currency
$displayLocale

at line 62
getName($currency, $displayLocale = null)

Parameters

$currency
$displayLocale

at line 71
getNames($displayLocale = null)

Parameters

$displayLocale

at line 106
getFractionDigits($currency)

Data provider for {@link \Symfony\Component\Intl\Currency::getFractionDigits()}.

Parameters

$currency

at line 118
getRoundingIncrement($currency)

Data provider for {@link \Symfony\Component\Intl\Currency::getRoundingIncrement()}.

Parameters

$currency

at line 130
getNumericCode($currency)

Data provider for {@link \Symfony\Component\Intl\Currency::getNumericCode()}.

Parameters

$currency

at line 138
forNumericCode($numericCode)

Data provider for {@link \Symfony\Component\Intl\Currency::forNumericCode()}.

Parameters

$numericCode