CurrencyBundleTransformationRule::afterCompile()

afterCompile(CompilationContextInterface $context) Runs instructions to be executed after compiling the sources of the resource bundle. Parameters CompilationContextInterface $context The contextual information of the compilation.

CurrencyBundleTransformationRule::afterCreateStub()

afterCreateStub(StubbingContextInterface $context) Runs instructions to be executed after creating the stub version of the resource bundle. Parameters StubbingContextInterface $context The contextual information of the compilation.

CurrencyBundleInterface::getFractionDigits()

int|null getFractionDigits(string $currency) Returns the number of digits after the comma of a currency. Parameters string $currency A currency code (e.g. "EUR") Return Value int|null The number of digits after the comma or NULL if not found

CurrencyBundleInterface::getRoundingIncrement()

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. Parameters string $currency A currency code (e.g. "EUR") Return Value float|int|null The rounding increment or NULL if not found

CurrencyBundleInterface::getCurrencyName()

string|null getCurrencyName(string $currency, string $displayLocale = null) Returns the name of a currency. Parameters string $currency A currency code (e.g. "EUR") string $displayLocale Optional. The locale to return the name in Defaults to {@link \Locale::getDefault()}. Return Value string|null The name of the currency or NULL if not found

CurrencyBundleTransformationRule

class CurrencyBundleTransformationRule implements TransformationRuleInterface The rule for compiling the currency bundle. Methods string getBundleName() Returns the name of the compiled resource bundle. string[] beforeCompile(CompilationContextInterface $context) Runs instructions to be executed before compiling the sources of the resource bundle. afterCompile(CompilationContextInterface $context) Runs instructions to be executed after compiling the sources of the resource bund

CurrencyBundleInterface::getCurrencyNames()

string[] getCurrencyNames(string $displayLocale = null) Returns the names of all known currencies. Parameters string $displayLocale Optional. The locale to return the names in Defaults to {@link \Locale::getDefault()}. Return Value string[] A list of currency names indexed by currency codes

CurrencyBundleInterface::getCurrencySymbol()

string|null getCurrencySymbol(string $currency, string $displayLocale = null) Returns the symbol used for a currency. Parameters string $currency A currency code (e.g. "EUR") string $displayLocale Optional. The locale to return the result in Defaults to {@link \Locale::getDefault()}. Return Value string|null The currency symbol or NULL if not found

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(

CurrencyBundle::getLocales()

string[] getLocales() Returns the list of locales that this bundle supports. Return Value string[] A list of locale codes.