PHP Class CommerceGuys\Addressing\AddressFormat\AddressFormatRepository

Inheritance: implements CommerceGuys\Addressing\AddressFormat\AddressFormatRepositoryInterface
Datei anzeigen Open project: commerceguys/addressing Class Usage Examples

Protected Properties

Property Type Description
$addressFormats array The instantiated address formats, keyed by country code.

Public Methods

Method Description
get ( $countryCode )
getAll ( )

Protected Methods

Method 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 method

public get ( $countryCode )

getAll() public method

public getAll ( )

getDefinitions() protected method

Gets the address format definitions.
protected getDefinitions ( ) : array
return array The address format definitions.

getGenericDefinition() protected method

Gets the generic address format definition.
protected getGenericDefinition ( ) : array
return array The generic address format definition.

processDefinition() protected method

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

Property Details

$addressFormats protected_oe property

The instantiated address formats, keyed by country code.
protected array $addressFormats
return array