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 CurrencyCollection

A currency collection.

<?php

$collection = new CurrencyCollection($repository);

isset($collection['EUR']);            // true
isset($collection['USD']);            // true
isset($collection['ABC']);            // false

echo get_class($collection['EUR']);   // ICanBoogie\CLDR\Currency
echo $collection['EUR']->code;        // EUR
ICanBoogie\CLDR\CurrencyCollection implements ArrayAccess uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\RepositoryPropertyTrait, ICanBoogie\CLDR\CollectionTrait
Namespace: ICanBoogie\CLDR
Located at CurrencyCollection.php

Methods summary

public
# __construct( ICanBoogie\CLDR\Repository $repository )

Parameters

$repository
public boolean
# offsetExists( string $currency_code )

Check if a currency is defined.

Check if a currency is defined.

Parameters

$currency_code

Returns

boolean
true if the currency is defined, `false' otherwise.

Implementation of

ArrayAccess::offsetExists()
public ICanBoogie\CLDR\Currency
# offsetGet( string $currency_code )

Return a currency.

Return a currency.

Parameters

$currency_code

Returns

ICanBoogie\CLDR\Currency

Throw

OffsetNotDefined in attempt to obtain a currency that is not defined.

Implementation of

ArrayAccess::offsetGet()

Methods inherited from ArrayAccess

offsetSet(), offsetUnset()

Methods used from ICanBoogie\CLDR\RepositoryPropertyTrait

get_repository()

Methods used from ICanBoogie\CLDR\CollectionTrait

offsetSet(), offsetUnset()

Properties summary

Magic properties used from ICanBoogie\CLDR\RepositoryPropertyTrait

$repository

ICanBoogie/CLDR v1.6.0 API documentation generated by ApiGen