PHP 인터페이스 CommerceGuys\Addressing\Formatter\FormatterInterface

파일 보기 프로젝트 열기: commerceguys/addressing

공개 메소드들

메소드 설명
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.