PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / trunk
Kubio AI Page Builder vtrunk
2.9.0 2.8.6 2.8.5 2.8.4 2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / vendor / fzaninotto / faker / src / Faker / Provider / en_ZA / Address.php
kubio / vendor / fzaninotto / faker / src / Faker / Provider / en_ZA Last commit date
Address.php 1 year ago Company.php 1 year ago Internet.php 1 year ago Person.php 1 year ago PhoneNumber.php 1 year ago
Address.php
71 lines
1 <?php
2
3 namespace Faker\Provider\en_ZA;
4
5 class Address extends \Faker\Provider\en_US\Address
6 {
7 protected static $cityPrefix = array('North', 'East', 'West', 'South', 'New', 'Lake', 'Port');
8 protected static $citySuffix = array('fontein','town', 'ton', 'land', 'ville', 'berg', 'burgh', 'borough', 'bury', 'view', 'port', 'mouth', 'stad', 'furt', 'chester', 'mouth', 'fort', 'haven', 'side', 'shire');
9 protected static $buildingNumber = array('#####', '####', '###');
10 protected static $streetSuffix = array(
11 'Alley', 'Avenue', 'Branch', 'Bridge', 'Brook', 'Brooks', 'Burg', 'Burgs', 'Bypass', 'Camp', 'Canyon', 'Cape', 'Causeway', 'Center', 'Centers', 'Circle', 'Circles', 'Cliff', 'Cliffs', 'Club', 'Common', 'Corner', 'Corners', 'Course', 'Court', 'Courts', 'Cove', 'Coves', 'Creek', 'Crescent', 'Crest', 'Crossing', 'Crossroad', 'Curve', 'Dale', 'Dam', 'Divide', 'Drive', 'Drive', 'Drives', 'Estate', 'Estates', 'Expressway', 'Extension', 'Extensions', 'Fall', 'Falls', 'Ferry', 'Field', 'Fields', 'Flat', 'Flats', 'Ford', 'Fords', 'Forest', 'Forge', 'Forges', 'Fork', 'Forks', 'Fort', 'Freeway', 'Garden', 'Gardens', 'Gateway', 'Glen', 'Glens', 'Green', 'Greens', 'Grove', 'Groves', 'Harbor', 'Harbors', 'Haven', 'Heights', 'Highway', 'Hill', 'Hills', 'Hollow', 'Inlet', 'Inlet', 'Island', 'Island', 'Islands', 'Islands', 'Isle', 'Isle', 'Junction', 'Junctions', 'Key', 'Keys', 'Knoll', 'Knolls', 'Lake', 'Lakes', 'Land', 'Landing', 'Lane', 'Light', 'Lights', 'Loaf', 'Lock', 'Locks', 'Locks', 'Lodge', 'Lodge', 'Loop', 'Mall', 'Manor', 'Manors', 'Meadow', 'Meadows', 'Mews', 'Mill', 'Mills', 'Mission', 'Mission', 'Motorway', 'Mount', 'Mountain', 'Mountain', 'Mountains', 'Mountains', 'Neck', 'Orchard', 'Oval', 'Overpass', 'Park', 'Parks', 'Parkway', 'Parkways', 'Pass', 'Passage', 'Path', 'Pike', 'Pine', 'Pines', 'Place', 'Plain', 'Plains', 'Plains', 'Plaza', 'Plaza', 'Point', 'Points', 'Port', 'Port', 'Ports', 'Ports', 'Prairie', 'Prairie', 'Radial', 'Ramp', 'Ranch', 'Rapid', 'Rapids', 'Rest', 'Ridge', 'Ridges', 'River', 'Road', 'Road', 'Roads', 'Roads', 'Route', 'Row', 'Rue', 'Run', 'Shoal', 'Shoals', 'Shore', 'Shores', 'Skyway', 'Spring', 'Springs', 'Springs', 'Spur', 'Spurs', 'Square', 'Square', 'Squares', 'Squares', 'Station', 'Station', 'Stravenue', 'Stravenue', 'Stream', 'Stream', 'Street', 'Street', 'Streets', 'Summit', 'Summit', 'Terrace', 'Throughway', 'Trace', 'Track', 'Trafficway', 'Trail', 'Trail', 'Tunnel', 'Tunnel', 'Turnpike', 'Turnpike', 'Underpass', 'Union', 'Unions', 'Valley', 'Valleys', 'Via', 'Viaduct', 'View', 'Views', 'Village', 'Village', 'Villages', 'Ville', 'Vista', 'Vista', 'Walk', 'Walks', 'Wall', 'Way', 'Ways', 'Well', 'Wells',
12 );
13 protected static $postcode = array('####');
14 protected static $province = array(
15 'Eastern Cape', 'Free State', 'Gauteng', 'KwaZulu-Natal', 'Limpopo', 'Mpumalanga', 'North-West', 'Northern Cape', 'Western Cape',
16 );
17 protected static $provinceAbbr = array(
18 'EC', 'FS', 'GP', 'KZN', 'LP', 'MP', 'NW', 'NC', 'WC',
19 );
20 protected static $cityFormats = array(
21 '{{cityPrefix}} {{firstName}}{{citySuffix}}',
22 '{{cityPrefix}} {{firstName}}',
23 '{{firstName}}{{citySuffix}}',
24 '{{lastName}}{{citySuffix}}',
25 );
26 protected static $streetNameFormats = array(
27 '{{firstName}} {{streetSuffix}}',
28 '{{lastName}} {{streetSuffix}}',
29 );
30 protected static $streetAddressFormats = array(
31 '{{buildingNumber}} {{streetName}}',
32 '{{buildingNumber}} {{streetName}} {{secondaryAddress}}',
33 );
34 protected static $addressFormats = array(
35 "{{streetAddress}}\n{{city}}, {{provinceAbbr}} {{postcode}}",
36 );
37 protected static $secondaryAddressFormats = array('Apt. ###', 'Suite ###');
38
39 /**
40 * @example 'East'
41 */
42 public static function cityPrefix()
43 {
44 return static::randomElement(static::$cityPrefix);
45 }
46
47 /**
48 * @example 'Appt. 350'
49 */
50 public static function secondaryAddress()
51 {
52 return static::numerify(static::randomElement(static::$secondaryAddressFormats));
53 }
54
55 /**
56 * @example 'Gauteng'
57 */
58 public static function province()
59 {
60 return static::randomElement(static::$province);
61 }
62
63 /**
64 * @example 'GP'
65 */
66 public static function provinceAbbr()
67 {
68 return static::randomElement(static::$provinceAbbr);
69 }
70 }
71