Class Locale
Representation of a locale.
- ICanBoogie\CLDR\Locale implements ArrayAccess uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\RepositoryPropertyTrait, ICanBoogie\CLDR\CodePropertyTrait
Methods summary
public
|
#
__construct(
Initializes the $repository and $code properties. |
protected
string
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
string
|
#
format_number( number $number, string|null $pattern = null, array $symbols = [] )
Formats a number using $number_formatter. |
public
string
|
#
format_list( array $list, array|string $list_patterns_or_type = LocalizedListFormatter::TYPE_STANDARD )
Formats a variable-length lists of things using $list_formatter. |
Methods used from ICanBoogie\CLDR\RepositoryPropertyTrait
Methods used from ICanBoogie\CLDR\CodePropertyTrait
Magic properties
public read-only
|
$repository
The repository provided during construct. |
public read-only
string
|
$code
The ISO code of the locale. |
public read-only
string
|
$language
The language code. |
public read-only
|
$calendars
The calendar collection of the locale. |
public read-only
|
$calendar
The preferred calendar for this locale. |
public read-only
|
$numbers
|
public read-only
|
$number_formatter
|
public read-only
|
$list_formatter
|