Currencies
extends ResourceBundle
in package
FinalYes
Gives access to currency-related ICU data.
Tags
Table of Contents
Constants
- INDEX_CASH_FRACTION_DIGITS = 2
- INDEX_CASH_ROUNDING_INCREMENT = 3
- INDEX_FRACTION_DIGITS = 0
- INDEX_NAME = 1
- INDEX_ROUNDING_INCREMENT = 1
- INDEX_SYMBOL = 0
Methods
- exists() : bool
- forNumericCode() : array<string|int, mixed>
- getCashFractionDigits() : int
- getCashRoundingIncrement() : int
- getCurrencyCodes() : array<string|int, string>
- getFractionDigits() : int
- getName() : string
- getNames() : array<string|int, string>
- getNumericCode() : int
- getRoundingIncrement() : int
- getSymbol() : string
- getPath() : string
Constants
INDEX_CASH_FRACTION_DIGITS
private
mixed
INDEX_CASH_FRACTION_DIGITS
= 2
INDEX_CASH_ROUNDING_INCREMENT
private
mixed
INDEX_CASH_ROUNDING_INCREMENT
= 3
INDEX_FRACTION_DIGITS
private
mixed
INDEX_FRACTION_DIGITS
= 0
INDEX_NAME
private
mixed
INDEX_NAME
= 1
INDEX_ROUNDING_INCREMENT
private
mixed
INDEX_ROUNDING_INCREMENT
= 1
INDEX_SYMBOL
private
mixed
INDEX_SYMBOL
= 0
Methods
exists()
public
static exists(string $currency) : bool
Parameters
- $currency : string
Return values
boolforNumericCode()
public
static forNumericCode(int $numericCode) : array<string|int, mixed>
Parameters
- $numericCode : int
Tags
Return values
array<string|int, mixed>getCashFractionDigits()
public
static getCashFractionDigits(string $currency) : int
Parameters
- $currency : string
Return values
intgetCashRoundingIncrement()
public
static getCashRoundingIncrement(string $currency) : int
Parameters
- $currency : string
Return values
intgetCurrencyCodes()
public
static getCurrencyCodes() : array<string|int, string>
Return values
array<string|int, string>getFractionDigits()
public
static getFractionDigits(string $currency) : int
Parameters
- $currency : string
Return values
intgetName()
public
static getName(string $currency[, string $displayLocale = null ]) : string
Parameters
- $currency : string
- $displayLocale : string = null
Tags
Return values
stringgetNames()
public
static getNames([string $displayLocale = null ]) : array<string|int, string>
Parameters
- $displayLocale : string = null
Return values
array<string|int, string>getNumericCode()
public
static getNumericCode(string $currency) : int
Parameters
- $currency : string
Tags
Return values
intgetRoundingIncrement()
public
static getRoundingIncrement(string $currency) : int
Parameters
- $currency : string
Return values
intgetSymbol()
public
static getSymbol(string $currency[, string $displayLocale = null ]) : string
Parameters
- $currency : string
- $displayLocale : string = null
Tags
Return values
stringgetPath()
protected
static getPath() : string