ICanBoogie/CLDR v1.6.0
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • CLDR

Classes

  • Calendar
  • CalendarCollection
  • ContextTransforms
  • Currency
  • CurrencyCollection
  • CurrencyFormatter
  • DateFormatter
  • DateTimeFormatter
  • FileProvider
  • ListFormatter
  • Locale
  • LocaleCollection
  • LocalizedCurrency
  • LocalizedDateTime
  • LocalizedListFormatter
  • LocalizedLocale
  • LocalizedNumberFormatter
  • LocalizedObject
  • LocalizedObjectWithFormatter
  • LocalizedTerritory
  • NumberFormatter
  • NumberPattern
  • NumberPatternParser
  • Numbers
  • ProviderCollection
  • RedisProvider
  • Repository
  • RunTimeProvider
  • Supplemental
  • Territory
  • TerritoryCollection
  • TimeFormatter
  • WebProvider

Interfaces

  • Exception
  • Formatter
  • LocalizeAwareInterface
  • Provider

Traits

  • CodePropertyTrait
  • CollectionTrait
  • LocalePropertyTrait
  • ProviderStorageBinding
  • RepositoryPropertyTrait

Exceptions

  • ResourceNotFound
  • TerritoryNotDefined

Class LocalizedCurrency

Localized currency.

ICanBoogie\CLDR\LocalizedObject uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\LocalePropertyTrait
Extended by ICanBoogie\CLDR\LocalizedObjectWithFormatter
Extended by ICanBoogie\CLDR\LocalizedCurrency
Namespace: ICanBoogie\CLDR
Located at LocalizedCurrency.php

Methods summary

protected ICanBoogie\CLDR\CurrencyFormatter
# lazy_get_formatter( )

Returns the formatter to use to format the target object.

Returns the formatter to use to format the target object.

Returns

ICanBoogie\CLDR\CurrencyFormatter
public string
# get_name( integer|null $count = null )

Returns the localized name of the currency.

Returns the localized name of the currency.

Parameters

$count
Used for pluralization.

Returns

string
protected string
# get_symbol( )

Returns the localized symbol of the currency.

Returns the localized symbol of the currency.

Returns

string
public string
# format( number $number, string $pattern = self::PATTERN_STANDARD, array $symbols = [] )

Formats currency using localized conventions.

Formats currency using localized conventions.

Parameters

$number
$pattern
$symbols

Returns

string
protected string
# resolve_pattern( string $pattern )

Resolves a pattern.

Resolves a pattern.

The special patterns ICanBoogie\CLDR\LocalizedCurrency::PATTERN_STANDARD and ICanBoogie\CLDR\LocalizedCurrency::PATTERN_ACCOUNTING are resolved from the currency formats.

Parameters

$pattern

Returns

string

Methods inherited from ICanBoogie\CLDR\LocalizedObjectWithFormatter

__get()

Methods inherited from ICanBoogie\CLDR\LocalizedObject

__construct(), from(), get_target()

Methods used from ICanBoogie\CLDR\LocalePropertyTrait

get_locale()

Magic methods inherited from ICanBoogie\CLDR\LocalizedObjectWithFormatter

format()

Constants summary

string PATTERN_STANDARD
# 'standard'
string PATTERN_ACCOUNTING
# 'accounting'

Properties summary

Properties inherited from ICanBoogie\CLDR\LocalizedObject

$options, $target

Magic properties

public read-only ICanBoogie\CLDR\Currency $target
public read-only string $name

The localized name of the currency.

public read-only string $symbol

The localized symbol of the currency.

public read-only ICanBoogie\CLDR\CurrencyFormatter $formatter

Magic properties inherited from ICanBoogie\CLDR\LocalizedObject

$locale

Magic properties used from ICanBoogie\CLDR\LocalePropertyTrait

$locale

ICanBoogie/CLDR v1.6.0 API documentation generated by ApiGen