PHP Класс CommerceGuys\Addressing\Address

Can be mapped and used by Doctrine (preferably as an embeddable).
Наследование: implements ImmutableAddressInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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