PHP Class CommerceGuys\Addressing\AddressFormat\AddressFormatRepository

Inheritance: implements CommerceGuys\Addressing\AddressFormat\AddressFormatRepositoryInterface
Afficher le fichier Open project: commerceguys/addressing Class Usage Examples

Protected Properties

Свойство Type Description
$addressFormats array The instantiated address formats, keyed by country code.

Méthodes publiques

Méthode Description
get ( $countryCode )
getAll ( )

Méthodes protégées

Méthode Description
getDefinitions ( ) : array Gets the address format definitions.
getGenericDefinition ( ) : array Gets the generic address format definition.
processDefinition ( string $countryCode, array $definition ) : array Processes the country's address format definition.

Method Details

get() public méthode

public get ( $countryCode )

getAll() public méthode

public getAll ( )

getDefinitions() protected méthode

Gets the address format definitions.
protected getDefinitions ( ) : array
Résultat array The address format definitions.

getGenericDefinition() protected méthode

Gets the generic address format definition.
protected getGenericDefinition ( ) : array
Résultat array The generic address format definition.

processDefinition() protected méthode

Processes the country's address format definition.
protected processDefinition ( string $countryCode, array $definition ) : array
$countryCode string The country code.
$definition array The definition.
Résultat array The processed definition.

Property Details

$addressFormats protected_oe property

The instantiated address formats, keyed by country code.
protected array $addressFormats
Résultat array