Property | Type | Description | |
---|---|---|---|
$children | The children. | ||
$code | string | The subdivision code. | |
$countryCode | string | The country code. | |
$isoCode | string | The subdivision iso code. | |
$localCode | string | The local subdivision code. | |
$localName | string | The local subdivision name. | |
$locale | string | The locale. | |
$name | string | The subdivision name. | |
$parent | The parent. | ||
$postalCodePattern | string | The postal code pattern. | |
$postalCodePatternType | string | The postal code pattern type. |
Method | Description | |
---|---|---|
__construct ( array $definition ) | Creates a new Subdivision instance. | |
getChildren ( ) : |
Gets the subdivision children. | |
getCode ( ) : string | Gets the subdivision code. | |
getCountryCode ( ) : string | Gets the subdivision country code. | |
getIsoCode ( ) : string | Gets the subdivision ISO 3166-2 code. | |
getLocalCode ( ) : string | null | Gets the subdivision local code. | |
getLocalName ( ) : string | null | Gets the subdivision local name. | |
getLocale ( ) : string | null | Gets the subdivision locale. | |
getName ( ) : string | Gets the subdivision name. | |
getParent ( ) : |
Gets the subdivision parent. | |
getPostalCodePattern ( ) : string | null | Gets the postal code pattern. | |
getPostalCodePatternType ( ) : string | null | Gets the postal code pattern type. | |
hasChildren ( ) : boolean | Checks whether the subdivision has children. |
public __construct ( array $definition ) | ||
$definition | array | The definition array. |
public getChildren ( ) : |
||
return | The subdivision children. |
public getCountryCode ( ) : string | ||
return | string | The two-letter country code. |
public getIsoCode ( ) : string | ||
return | string | The subdivision ISO 3166-2 code. |
public getLocalCode ( ) : string | null | ||
return | string | null | The subdivision local code, if defined. |
public getLocalName ( ) : string | null | ||
return | string | null | The subdivision local name, if defined. |
public getPostalCodePattern ( ) : string | null | ||
return | string | null | The postal code pattern. |
public getPostalCodePatternType ( ) : string | null | ||
return | string | null | The postal code pattern type. |
public hasChildren ( ) : boolean | ||
return | boolean | TRUE if the subdivision has children, FALSE otherwise. |
protected string $localCode | ||
return | string |
protected string $localName | ||
return | string |
protected Subdivision,CommerceGuys\Addressing\Subdivision $parent | ||
return |
protected string $postalCodePattern | ||
return | string |
protected string $postalCodePatternType | ||
return | string |