ICanBoogie
  • Documentation
  • API Reference
  • CLDR master
Namespaces
  • ICanBoogie
    • CLDR
      • Plurals
      • Units
Classes
  • AbstractCollection
  • AbstractSectionCollection
  • Calendar
  • CalendarCollection
  • ContextTransforms
  • Currency
  • CurrencyCollection
  • CurrencyFormatter
  • DateFormatter
  • DateTimeAccessor
  • DateTimeFormatter
  • FileProvider
  • ListFormatter
  • Locale
  • LocaleCollection
  • LocalizedCurrency
  • LocalizedDateTime
  • LocalizedListFormatter
  • LocalizedLocale
  • LocalizedNumberFormatter
  • LocalizedObject
  • LocalizedObjectWithFormatter
  • LocalizedTerritory
  • Number
  • NumberFormatter
  • NumberPattern
  • NumberPatternParser
  • Numbers
  • Plurals
  • ProviderCollection
  • RedisProvider
  • Repository
  • RunTimeProvider
  • Supplemental
  • Territory
  • TerritoryCollection
  • TimeFormatter
  • Units
  • WebProvider
Interfaces
  • Exception
  • Formatter
  • LocalizeAwareInterface
  • Provider
Traits
  • CodePropertyTrait
  • CollectionTrait
  • LocalePropertyTrait
  • LocalizeTrait
  • ProviderStorageBinding
  • RepositoryPropertyTrait
Exceptions
  • ResourceNotFound
  • TerritoryNotDefined

Class Territory

A territory.

ICanBoogie\CLDR\Territory uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\RepositoryPropertyTrait, ICanBoogie\CLDR\CodePropertyTrait
Namespace: ICanBoogie\CLDR
See: http://www.unicode.org/reports/tr35/tr35-numbers.html#Supplemental_Currency_Data
Located at Territory.php

Methods summary

public __construct( ICanBoogie\CLDR\Repository $repository, string $code )

Initialize the $repository and $code properties.

Initialize the $repository and $code properties.

Parameters

$repository
$code
The ISO code of the territory.
public __get( $property )

Inheritdoc

protected lazy_get_containment( void ) : array

Return the territoryContainment data.

Return the territoryContainment data.

Returns

array
protected lazy_get_currencies( void ) : array

Returns the currencies used throughout the history of the territory.

Returns the currencies used throughout the history of the territory.

Returns

array
protected lazy_get_currency( void ) : ICanBoogie\CLDR\Currency

Returns

ICanBoogie\CLDR\Currency
public currency_at( DateTimeInterface|mixed $date = null ) : ICanBoogie\CLDR\Currency

Return the currency used in the territory at a point in time.

Return the currency used in the territory at a point in time.

Parameters

$date

Returns

ICanBoogie\CLDR\Currency
protected get_first_day( void ) : string

Return the code of the first day of the week.

Return the code of the first day of the week.

Returns

string
protected get_weekend_start( void ) : string

Return the code of the first day of the weekend.

Return the code of the first day of the weekend.

Returns

string
protected get_weekend_end( void ) : string

Return the code of the last day of the weekend.

Return the code of the last day of the weekend.

Returns

string
protected lazy_get_info( void ) : array

Return the territoryInfo data.

Return the territoryInfo data.

Returns

array
protected lazy_get_language( void ) : string|boolean

Return the ISO code of the official language of the territory.

Return the ISO code of the official language of the territory.

Returns

string|boolean

The ISO code of the official language, or `false' if it cannot be determined.

protected get_population( void ) : integer

Return the population of the territory.

Return the population of the territory.

Returns

integer
public is_containing( string $code ) : boolean

Whether the territory contains the specified territory.

Whether the territory contains the specified territory.

Parameters

$code

Returns

boolean
public name_as( string $locale_code ) : string

Return the name of the territory localized according to the specified locale code.

Return the name of the territory localized according to the specified locale code.

Parameters

$locale_code
The ISO code of the locale.

Returns

string
public localize( string $locale_code ) : ICanBoogie\CLDR\LocalizedCurrency

Localize the currency.

Localize the currency.

Parameters

$locale_code

Returns

ICanBoogie\CLDR\LocalizedCurrency

Methods used from ICanBoogie\CLDR\RepositoryPropertyTrait

get_repository()

Methods used from ICanBoogie\CLDR\CodePropertyTrait

__toString(), get_code()

Properties summary

Magic properties

public read-only $containment : array

The territoryContainment data.

public read-only $info : array

The territoryInfo data.

public read-only $currencies : array

The currencies available in the country.

public read-only $currency : string

The current currency.

public read-only $first_day : string

The code of the first day of the week for the territory.

public read-only $weekend_start : string

The code of the first day of the weekend.

public read-only $weekend_end : string

The code of the last day of the weekend.

public read-only $language : string|boolean

The ISO code of the official language, or `false' if it cannot be determined.

public read-only $population : integer

The population of the territory.

Magic properties used from ICanBoogie\CLDR\RepositoryPropertyTrait

$repository

Magic properties used from ICanBoogie\CLDR\CodePropertyTrait

$code

CLDR master – Check on GitHub – API documentation generated by ApiGen