Свойство | Тип | Описание | |
---|---|---|---|
$administrativeArea | string | The administrative area. | |
$countryCode | string | The country code. | |
$dependentLocality | string | The dependent locality. | |
$excludedPostalCodes | string | Can be a regular expression ("/(35|38)[0-9]{3}/") or a comma-separated list of postal codes, including ranges ("98, 100:200, 250"). | |
$includedPostalCodes | string | Can be a regular expression ("/(35|38)[0-9]{3}/") or a comma-separated list of postal codes, including ranges ("98, 100:200, 250"). | |
$locality | string | The locality. |
Метод | Описание | |
---|---|---|
getAdministrativeArea ( ) : string | null | Gets the administrative area. | |
getCountryCode ( ) : string | Gets the country code. | |
getDependentLocality ( ) : string | null | Gets the dependent locality. | |
getExcludedPostalCodes ( ) : string | Gets the excluded postal codes. | |
getIncludedPostalCodes ( ) : string | Gets the included postal codes. | |
getLocality ( ) : string | null | Gets the locality. | |
match ( CommerceGuys\Addressing\AddressInterface $address ) | ||
setAdministrativeArea ( string | null $administrativeArea = null ) : self | Sets the administrative area. | |
setCountryCode ( string $countryCode ) : self | Sets the country code. | |
setDependentLocality ( string | null $dependentLocality = null ) : self | Sets the dependent locality. | |
setExcludedPostalCodes ( string $excludedPostalCodes ) : self | Sets the excluded postal codes. | |
setIncludedPostalCodes ( string $includedPostalCodes ) : self | Sets the included postal codes. | |
setLocality ( string | null $locality = null ) : self | Sets the locality. |
public getAdministrativeArea ( ) : string | null | ||
Результат | string | null | The administrative area, or null if all should match. |
public getCountryCode ( ) : string | ||
Результат | string | The country code. |
public getDependentLocality ( ) : string | null | ||
Результат | string | null | The dependent locality, or null if all should match. |
public getExcludedPostalCodes ( ) : string | ||
Результат | string | The excluded postal codes. |
public getIncludedPostalCodes ( ) : string | ||
Результат | string | The included postal codes. |
public getLocality ( ) : string | null | ||
Результат | string | null | The locality, or null if all should match. |
public match ( CommerceGuys\Addressing\AddressInterface $address ) | ||
$address | CommerceGuys\Addressing\AddressInterface |
public setAdministrativeArea ( string | null $administrativeArea = null ) : self | ||
$administrativeArea | string | null | The administrative area. |
Результат | self |
public setCountryCode ( string $countryCode ) : self | ||
$countryCode | string | The country code. |
Результат | self |
public setDependentLocality ( string | null $dependentLocality = null ) : self | ||
$dependentLocality | string | null | The dependent locality. |
Результат | self |
public setExcludedPostalCodes ( string $excludedPostalCodes ) : self | ||
$excludedPostalCodes | string | The excluded postal codes. |
Результат | self |
public setIncludedPostalCodes ( string $includedPostalCodes ) : self | ||
$includedPostalCodes | string | The included postal codes. |
Результат | self |
public setLocality ( string | null $locality = null ) : self | ||
$locality | string | null | The locality. |
Результат | self |
protected string $administrativeArea | ||
Результат | string |
protected string $dependentLocality | ||
Результат | string |
protected string $excludedPostalCodes | ||
Результат | string |
protected string $includedPostalCodes | ||
Результат | string |