PHP Class CommerceGuys\Zone\Model\ZoneMemberCountry

Inheritance: extends CommerceGuys\Zone\Model\ZoneMember
Afficher le fichier Open project: commerceguys/zone

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
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.

Method Details

getAdministrativeArea() public méthode

Gets the administrative area.
public getAdministrativeArea ( ) : string | null
Résultat string | null The administrative area, or null if all should match.

getCountryCode() public méthode

Gets the country code.
public getCountryCode ( ) : string
Résultat string The country code.

getDependentLocality() public méthode

Gets the dependent locality.
public getDependentLocality ( ) : string | null
Résultat string | null The dependent locality, or null if all should match.

getExcludedPostalCodes() public méthode

Gets the excluded postal codes.
public getExcludedPostalCodes ( ) : string
Résultat string The excluded postal codes.

getIncludedPostalCodes() public méthode

Gets the included postal codes.
public getIncludedPostalCodes ( ) : string
Résultat string The included postal codes.

getLocality() public méthode

Gets the locality.
public getLocality ( ) : string | null
Résultat string | null The locality, or null if all should match.

match() public méthode

public match ( CommerceGuys\Addressing\AddressInterface $address )
$address CommerceGuys\Addressing\AddressInterface

setAdministrativeArea() public méthode

Sets the administrative area.
public setAdministrativeArea ( string | null $administrativeArea = null ) : self
$administrativeArea string | null The administrative area.
Résultat self

setCountryCode() public méthode

Sets the country code.
public setCountryCode ( string $countryCode ) : self
$countryCode string The country code.
Résultat self

setDependentLocality() public méthode

Sets the dependent locality.
public setDependentLocality ( string | null $dependentLocality = null ) : self
$dependentLocality string | null The dependent locality.
Résultat self

setExcludedPostalCodes() public méthode

Sets the excluded postal codes.
public setExcludedPostalCodes ( string $excludedPostalCodes ) : self
$excludedPostalCodes string The excluded postal codes.
Résultat self

setIncludedPostalCodes() public méthode

Sets the included postal codes.
public setIncludedPostalCodes ( string $includedPostalCodes ) : self
$includedPostalCodes string The included postal codes.
Résultat self

setLocality() public méthode

Sets the locality.
public setLocality ( string | null $locality = null ) : self
$locality string | null The locality.
Résultat self

Property Details

$administrativeArea protected_oe property

The administrative area.
protected string $administrativeArea
Résultat string

$countryCode protected_oe property

The country code.
protected string $countryCode
Résultat string

$dependentLocality protected_oe property

The dependent locality.
protected string $dependentLocality
Résultat string

$excludedPostalCodes protected_oe property

Can be a regular expression ("/(35|38)[0-9]{3}/") or a comma-separated list of postal codes, including ranges ("98, 100:200, 250").
protected string $excludedPostalCodes
Résultat string

$includedPostalCodes protected_oe property

Can be a regular expression ("/(35|38)[0-9]{3}/") or a comma-separated list of postal codes, including ranges ("98, 100:200, 250").
protected string $includedPostalCodes
Résultat string

$locality protected_oe property

The locality.
protected string $locality
Résultat string