PHP Класс CommerceGuys\Addressing\AddressFormat\AddressFormatRepository

Наследование: implements CommerceGuys\Addressing\AddressFormat\AddressFormatRepositoryInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$addressFormats array The instantiated address formats, keyed by country code.

Открытые методы

Метод Описание
get ( $countryCode )
getAll ( )

Защищенные методы

Метод Описание
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.

Описание методов

get() публичный Метод

public get ( $countryCode )

getAll() публичный Метод

public getAll ( )

getDefinitions() защищенный Метод

Gets the address format definitions.
protected getDefinitions ( ) : array
Результат array The address format definitions.

getGenericDefinition() защищенный Метод

Gets the generic address format definition.
protected getGenericDefinition ( ) : array
Результат array The generic address format definition.

processDefinition() защищенный Метод

Processes the country's address format definition.
protected processDefinition ( string $countryCode, array $definition ) : array
$countryCode string The country code.
$definition array The definition.
Результат array The processed definition.

Описание свойств

$addressFormats защищенное свойство

The instantiated address formats, keyed by country code.
protected array $addressFormats
Результат array