mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-20 23:39:51 +01:00
CA address formats
This commit is contained in:
parent
f43ce85625
commit
a82e690bf7
@ -9,14 +9,22 @@ namespace Faker\Provider\en_CA;
|
||||
class Address extends \Faker\Provider\en_US\Address
|
||||
{
|
||||
protected static $postcode = array('?#? #?#', '?#?-#?#', '?#?#?#');
|
||||
|
||||
protected static $postcodeLetters = array('A','B','C','E','G','H','J','K','L','M','N','P','R','S','T','V','X','Y');
|
||||
|
||||
protected static $province = array(
|
||||
'Alberta', 'British Columbia', 'Manitoba', 'New Brunswick', 'Newfoundland and Labrador', 'Northwest Territories' 'Nova Scotia', 'Nunavut', 'Ontario', 'Prince Edward Island', 'Quebec', 'Saskatchewan', 'Yukon Territory',
|
||||
);
|
||||
|
||||
protected static $provinceAbbr = array(
|
||||
'AB', 'BC', 'MB', 'NB', 'NL', 'NT', 'NS', 'NV', 'ON', 'PE', 'QC', 'SK', 'YT'
|
||||
);
|
||||
|
||||
protected static $addressFormats = array(
|
||||
"{{streetAddress}}\n{{city}}, {{provinceAbbr}} {{postcode}}",
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @example 'Ontario'
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user