PHP 클래스 CommerceGuys\Addressing\Address

Can be mapped and used by Doctrine (preferably as an embeddable).
상속: implements ImmutableAddressInterface
파일 보기 프로젝트 열기: commerceguys/addressing 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$additionalName string The additional name
$addressLine1 string The first line of the address block.
$addressLine2 string The second line of the address block.
$administrativeArea string The top-level administrative subdivision of the country.
$countryCode string The two-letter country code.
$dependentLocality string The dependent locality (i.e. neighbourhood).
$familyName string The family name.
$givenName string The given name.
$locale string The locale.
$locality string The locality (i.e. city).
$organization string The organization.
$postalCode string The postal code.
$sortingCode string The sorting code.

공개 메소드들

메소드 설명
__construct ( string $countryCode = '', string $administrativeArea = '', string $locality = '', string $dependentLocality = '', string $postalCode = '', string $sortingCode = '', string $addressLine1 = '', string $addressLine2 = '', string $organization = '', string $givenName = '', string $additionalName = '', string $familyName = '', string $locale = 'und' ) Creates an Address instance.
getAdditionalName ( )
getAddressLine1 ( )
getAddressLine2 ( )
getAdministrativeArea ( )
getCountryCode ( )
getDependentLocality ( )
getFamilyName ( )
getGivenName ( )
getLocale ( )
getLocality ( )
getOrganization ( )
getPostalCode ( )
getSortingCode ( )
withAdditionalName ( $additionalName )
withAddressLine1 ( $addressLine1 )
withAddressLine2 ( $addressLine2 )
withAdministrativeArea ( $administrativeArea )
withCountryCode ( $countryCode )
withDependentLocality ( $dependentLocality )
withFamilyName ( $familyName )
withGivenName ( $givenName )
withLocale ( $locale )
withLocality ( $locality )
withOrganization ( $organization )
withPostalCode ( $postalCode )
withSortingCode ( $sortingCode )

메소드 상세

__construct() 공개 메소드

Creates an Address instance.
public __construct ( string $countryCode = '', string $administrativeArea = '', string $locality = '', string $dependentLocality = '', string $postalCode = '', string $sortingCode = '', string $addressLine1 = '', string $addressLine2 = '', string $organization = '', string $givenName = '', string $additionalName = '', string $familyName = '', string $locale = 'und' )
$countryCode string The two-letter country code.
$administrativeArea string The administrative area.
$locality string The locality.
$dependentLocality string The dependent locality.
$postalCode string The postal code.
$sortingCode string The sorting code
$addressLine1 string The first line of the address block.
$addressLine2 string The second line of the address block.
$organization string The organization.
$givenName string The given name.
$additionalName string The additional name.
$familyName string The family name.
$locale string The locale. Defaults to 'und'.

getAdditionalName() 공개 메소드

public getAdditionalName ( )

getAddressLine1() 공개 메소드

public getAddressLine1 ( )

getAddressLine2() 공개 메소드

public getAddressLine2 ( )

getAdministrativeArea() 공개 메소드

getCountryCode() 공개 메소드

public getCountryCode ( )

getDependentLocality() 공개 메소드

getFamilyName() 공개 메소드

public getFamilyName ( )

getGivenName() 공개 메소드

public getGivenName ( )

getLocale() 공개 메소드

public getLocale ( )

getLocality() 공개 메소드

public getLocality ( )

getOrganization() 공개 메소드

public getOrganization ( )

getPostalCode() 공개 메소드

public getPostalCode ( )

getSortingCode() 공개 메소드

public getSortingCode ( )

withAdditionalName() 공개 메소드

public withAdditionalName ( $additionalName )

withAddressLine1() 공개 메소드

public withAddressLine1 ( $addressLine1 )

withAddressLine2() 공개 메소드

public withAddressLine2 ( $addressLine2 )

withAdministrativeArea() 공개 메소드

public withAdministrativeArea ( $administrativeArea )

withCountryCode() 공개 메소드

public withCountryCode ( $countryCode )

withDependentLocality() 공개 메소드

public withDependentLocality ( $dependentLocality )

withFamilyName() 공개 메소드

public withFamilyName ( $familyName )

withGivenName() 공개 메소드

public withGivenName ( $givenName )

withLocale() 공개 메소드

public withLocale ( $locale )

withLocality() 공개 메소드

public withLocality ( $locality )

withOrganization() 공개 메소드

public withOrganization ( $organization )

withPostalCode() 공개 메소드

public withPostalCode ( $postalCode )

withSortingCode() 공개 메소드

public withSortingCode ( $sortingCode )

프로퍼티 상세

$additionalName 보호되어 있는 프로퍼티

The additional name
protected string $additionalName
리턴 string

$addressLine1 보호되어 있는 프로퍼티

The first line of the address block.
protected string $addressLine1
리턴 string

$addressLine2 보호되어 있는 프로퍼티

The second line of the address block.
protected string $addressLine2
리턴 string

$administrativeArea 보호되어 있는 프로퍼티

The top-level administrative subdivision of the country.
protected string $administrativeArea
리턴 string

$countryCode 보호되어 있는 프로퍼티

The two-letter country code.
protected string $countryCode
리턴 string

$dependentLocality 보호되어 있는 프로퍼티

The dependent locality (i.e. neighbourhood).
protected string $dependentLocality
리턴 string

$familyName 보호되어 있는 프로퍼티

The family name.
protected string $familyName
리턴 string

$givenName 보호되어 있는 프로퍼티

The given name.
protected string $givenName
리턴 string

$locale 보호되어 있는 프로퍼티

The locale.
protected string $locale
리턴 string

$locality 보호되어 있는 프로퍼티

The locality (i.e. city).
protected string $locality
리턴 string

$organization 보호되어 있는 프로퍼티

The organization.
protected string $organization
리턴 string

$postalCode 보호되어 있는 프로퍼티

The postal code.
protected string $postalCode
리턴 string

$sortingCode 보호되어 있는 프로퍼티

The sorting code.
protected string $sortingCode
리턴 string