Class 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
)
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
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
Returns
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
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
get_repository()
__toString()
,
get_code()
Properties summary
Magic properties
public read-only
$containment
: array
The territoryContainment
data.
public read-only
$info
: array
public read-only
$currencies
: array
The currencies available in the country.
public read-only
$currency
: string
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.
$repository
$code