PHP 인터페이스 CommerceGuys\Addressing\AddressInterface

Field names follow the OASIS "eXtensible Address Language" (xAL) standard: http://www.oasis-open.org/committees/ciq/download.shtml Doesn't include the sub-administrative area (United States: county, Italy: province, Great Britain: county) because it is not required for addressing purposes. Makes no assumptions about mutability. The implementing application can extend the interface to provide setters, or implement a value object that uses either PSR-7 style with* mutators or relies on an AddressBuilder.
또한 보기: CommerceGuys\Addressing\ImmutableAddressInterface
파일 보기 프로젝트 열기: commerceguys/addressing 0 사용 예제들

공개 메소드들

메소드 설명
getAdditionalName ( ) : string Gets the additional name.
getAddressLine1 ( ) : string Gets the first line of address block.
getAddressLine2 ( ) : string Gets the second line of address block.
getAdministrativeArea ( ) : string Gets the administrative area.
getCountryCode ( ) : string Gets the two-letter country code.
getDependentLocality ( ) : string Gets the dependent locality (i.e neighbourhood).
getFamilyName ( ) : string Gets the family name (i.e last name).
getGivenName ( ) : string Gets the given name (i.e first name).
getLocale ( ) : string Gets the locale.
getLocality ( ) : string Gets the locality (i.e city).
getOrganization ( ) : string Gets the organization.
getPostalCode ( ) : string Gets the postal code.
getSortingCode ( ) : string Gets the sorting code.

메소드 상세

getAdditionalName() 공개 메소드

Can be used to hold a middle name, or a patronymic. If a remote API does not have an additional_name/middle_name parameter, append it to the given name.
public getAdditionalName ( ) : string
리턴 string The additional name.

getAddressLine1() 공개 메소드

Gets the first line of address block.
public getAddressLine1 ( ) : string
리턴 string The first line of the address block.

getAddressLine2() 공개 메소드

Gets the second line of address block.
public getAddressLine2 ( ) : string
리턴 string The second line of the address block.

getAdministrativeArea() 공개 메소드

Called the "state" in the United States, "province" in France and Italy, "county" in Great Britain, "prefecture" in Japan, etc.
public getAdministrativeArea ( ) : string
리턴 string The administrative area. A subdivision code if there are predefined subdivision at this level.

getCountryCode() 공개 메소드

This is a CLDR country code, since CLDR includes additional countries for addressing purposes, such as Canary Islands (IC).
public getCountryCode ( ) : string
리턴 string The two-letter country code.

getDependentLocality() 공개 메소드

When representing a double-dependent locality in Great Britain, includes both the double-dependent locality and the dependent locality, e.g. "Whaley, Langwith".
public getDependentLocality ( ) : string
리턴 string The administrative area. A subdivision code if there are predefined subdivision at this level.

getFamilyName() 공개 메소드

Gets the family name (i.e last name).
public getFamilyName ( ) : string
리턴 string The family name.

getGivenName() 공개 메소드

Gets the given name (i.e first name).
public getGivenName ( ) : string
리턴 string The given name.

getLocale() 공개 메소드

Allows the initially-selected address format / subdivision translations to be selected and used the next time this address is modified.
public getLocale ( ) : string
리턴 string The locale.

getLocality() 공개 메소드

Some countries do not use this field; their address lines are sufficient to locate an address within a sub-administrative area.
public getLocality ( ) : string
리턴 string The administrative area. A subdivision code if there are predefined subdivision at this level.

getOrganization() 공개 메소드

Gets the organization.
public getOrganization ( ) : string
리턴 string The organization.

getPostalCode() 공개 메소드

The value is often alphanumeric.
public getPostalCode ( ) : string
리턴 string The postal code.

getSortingCode() 공개 메소드

For example, CEDEX in France.
public getSortingCode ( ) : string
리턴 string The sorting code.