PHP Class Alcohol\ISO3166\ISO3166

Inheritance: implements IteratorAggregate, implements Alcohol\ISO3166\DataProvider
Afficher le fichier Open project: alcohol/iso3166

Protected Properties

Свойство Type Description
$countries array

Méthodes publiques

Méthode Description
getAll ( ) : array
getByAlpha2 ( string $alpha2 ) : array Lookup ISO3166-1 data by alpha2 identifier.
getByAlpha3 ( string $alpha3 ) : array Lookup ISO3166-1 data by alpha3 identifier.
getByCode ( string $code ) : array
getByNumeric ( string $numeric ) : array Lookup ISO3166-1 data by numeric identifier (numerical string, that is).
getIterator ( ) : Generator
listBy ( string $listBy = self::KEY_ALPHA2 ) : Generator

Méthodes protégées

Méthode Description
get ( string $id ) : array Lookup ISO3166-1 data by given identifier.

Method Details

get() protected méthode

Looks for a match against all known identifying keys of each entry in the dataset.
protected get ( string $id ) : array
$id string
Résultat array

getAll() public méthode

public getAll ( ) : array
Résultat array

getByAlpha2() public méthode

Lookup ISO3166-1 data by alpha2 identifier.
public getByAlpha2 ( string $alpha2 ) : array
$alpha2 string
Résultat array

getByAlpha3() public méthode

Lookup ISO3166-1 data by alpha3 identifier.
public getByAlpha3 ( string $alpha3 ) : array
$alpha3 string
Résultat array

getByCode() public méthode

Deprecation:
public getByCode ( string $code ) : array
$code string
Résultat array

getByNumeric() public méthode

Lookup ISO3166-1 data by numeric identifier (numerical string, that is).
public getByNumeric ( string $numeric ) : array
$numeric string
Résultat array

getIterator() public méthode

public getIterator ( ) : Generator
Résultat Generator

listBy() public méthode

public listBy ( string $listBy = self::KEY_ALPHA2 ) : Generator
$listBy string
Résultat Generator

Property Details

$countries protected_oe property

protected array $countries
Résultat array