\AdamRocska\ShippingTier\Entity\RuntimeCountry

Represents a runtime instance of a Country entity.

Summary

Methods
Properties
Constants
__construct()
createFromMap()
getIsoCode()
getLabel()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$isoCode
$label
N/A

Properties

$isoCode

$isoCode : string

The ISO code of the represented country object.

Type

string

$label

$label : string

The human readable representation of the represented country's name.

This value may be localized.

Type

string

Methods

__construct()

__construct(string  $isoCode, string  $label) 

Country constructor.

Parameters

string $isoCode

The ISO code of the represented country object.

string $label

The human readable representation of the represented country's name. This value may be localized.

createFromMap()

createFromMap(array  $map) : array<mixed,\AdamRocska\ShippingTier\Entity\Runtime\Country>

Utility method for the mass creation of Country objects from a provided map.

Parameters

array $map

Keys are considered to be ISO Codes. Values are considered to be labels.

Returns

array<mixed,\AdamRocska\ShippingTier\Entity\Runtime\Country>

getIsoCode()

getIsoCode() : string

Returns the ISO Code of the country the object represents.

Returns

string

getLabel()

getLabel() : string

Returns the human readable representation of the country's name the object represents.

This value may be localized.

Returns

string