Property | Type | Description | |
---|---|---|---|
$counties | |||
$towns |
Method | Description | |
---|---|---|
__construct ( ) | ||
countyForOuterPostCode ( string $_code ) : string | Returns county for an outer post code. | |
isCounty ( string $_string ) : boolean | Is the passed string a county? | |
isTown ( $_string ) : boolean | Returns county for an outer post code. | |
parsePostCode ( string $_string ) : array | false | Cleans string, tests that is is postcode, return associative array with components, or false if not valid. | |
townForOuterPostCode ( string $_code ) : string | Returns town for an outer post code. |
public countyForOuterPostCode ( string $_code ) : string | ||
$_code | string | Outer postcode |
return | string | County name |
public parsePostCode ( string $_string ) : array | false | ||
$_string | string | Possible postcode string |
return | array | false |
public townForOuterPostCode ( string $_code ) : string | ||
$_code | string | Outer postcode |
return | string | Town name |