PHP Интерфейс CommerceGuys\Addressing\Formatter\FormatterInterface

Показать файл Открыть проект

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

Метод Описание
format ( CommerceGuys\Addressing\AddressInterface $address ) : string Formats an address.
getLocale ( ) : string Gets the locale.
getOption ( $key ) : array Gets the option with the provided key.
getOptions ( ) : array Gets the options.
setLocale ( string $locale ) Sets the locale.
setOption ( string $key, string $value ) Sets the option with the provided key.
setOptions ( array $options ) Sets the options.

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

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

Formats an address.
public format ( CommerceGuys\Addressing\AddressInterface $address ) : string
$address CommerceGuys\Addressing\AddressInterface The address.
Результат string The formatted address.

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

Gets the locale.
public getLocale ( ) : string
Результат string The locale.

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

Gets the option with the provided key.
public getOption ( $key ) : array
Результат array $options The options.

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

Gets the options.
public getOptions ( ) : array
Результат array $options The options.

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

Sets the locale.
public setLocale ( string $locale )
$locale string The locale.

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

Sets the option with the provided key.
public setOption ( string $key, string $value )
$key string The key.
$value string The new value.

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

Sets the options.
public setOptions ( array $options )
$options array The options.