Country
DTO that keeps the information about a country. Never instantiate directly, use CountryProvider instead.
Table of Contents
Constants
- LABEL_FILE = 'EXT:core/Resources/Private/Language/Iso/countries.xlf'
Properties
- $alpha2 : string
- $alpha3 : string
- $flag : string
- $name : string
- $numeric : string
- $officialName : string|null
Methods
- __construct() : mixed
- getAlpha2IsoCode() : string
- getAlpha3IsoCode() : string
- getFlag() : string
- getLocalizedNameLabel() : string
- getLocalizedOfficialNameLabel() : string
- getName() : string
- getNumericRepresentation() : string
- getOfficialName() : string|null
Constants
LABEL_FILE
protected
mixed
LABEL_FILE
= 'EXT:core/Resources/Private/Language/Iso/countries.xlf'
Properties
$alpha2
protected
string
$alpha2
$alpha3
protected
string
$alpha3
$flag
protected
string
$flag
$name
protected
string
$name
$numeric
protected
string
$numeric
$officialName
protected
string|null
$officialName
Methods
__construct()
public
__construct(string $alpha2, string $alpha3, string $name, string $numeric, string $flag, string|null $officialName) : mixed
Parameters
- $alpha2 : string
- $alpha3 : string
- $name : string
- $numeric : string
- $flag : string
- $officialName : string|null
getAlpha2IsoCode()
public
getAlpha2IsoCode() : string
Return values
stringgetAlpha3IsoCode()
public
getAlpha3IsoCode() : string
Return values
stringgetFlag()
public
getFlag() : string
Return values
stringgetLocalizedNameLabel()
public
getLocalizedNameLabel() : string
Return values
stringgetLocalizedOfficialNameLabel()
public
getLocalizedOfficialNameLabel() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetNumericRepresentation()
public
getNumericRepresentation() : string
Return values
stringgetOfficialName()
public
getOfficialName() : string|null