PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.24.2
GiveWP – Donation Plugin and Fundraising Platform v2.24.2
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / vendor / fakerphp / faker / src / Faker / Provider / fr_BE / Address.php
Address.php
73 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Faker\Provider\fr_BE;
4
5 class Address extends \Faker\Provider\fr_FR\Address
6 {
7 protected static $postcode = array('####');
8
9 protected static $streetAddressFormats = array(
10 '{{streetName}} {{buildingNumber}}'
11 );
12
13 protected static $streetNameFormats = array('{{streetSuffix}} {{lastName}}');
14
15 protected static $cityFormats = array('{{cityName}}');
16
17 protected static $addressFormats = array(
18 "{{streetAddress}}\n {{postcode}} {{city}}",
19 );
20
21 protected static $streetSuffix = array(
22 'rue', 'avenue', 'boulevard', 'chemin', 'chaussée', 'impasse', 'place'
23 );
24
25 /**
26 * Source: http://fr.wikipedia.org/wiki/Ville_de_Belgique
27 *
28 * @var array
29 */
30 protected static $cityNames = array(
31 'Aarschot','Alost','Andenne','Antoing','Anvers','Arlon','Ath','Audenarde','Bastogne','Beaumont','Beauraing','Beringen','Bilzen','Binche',
32 'Blankenberge','Bouillon','Braine-le-Comte','Bree','Bruges','Bruxelles','Charleroi','Châtelet','Chièvres','Chimay','Chiny','Ciney','Comines-Warneton','Courtrai',
33 'Couvin','Damme','Deinze','Diest','Dilsen-Stokkem','Dinant','Dixmude','Durbuy','Eeklo','Enghien','Eupen','Fleurus','Florenville','Fontaine-l\'Évêque','Fosses-la-Ville',
34 'Furnes','Gand','Geel','Gembloux','Genappe','Genk','Gistel','Grammont','Hal','Halen','Hamont-Achel','Hannut','Harelbeke','Hasselt',
35 'Herck-la-Ville','Herentals','Herstal','Herve','Hoogstraten','Houffalize','Huy','Izegem','Jodoigne','La Louvière','La Roche-en-Ardenne','Landen','Léau',
36 'Le Rœulx','Lessines','Leuze-en-Hainaut','Liège','Lierre','Limbourg','Lokeren','Lommel','Looz','Lo-Reninge','Louvain','Maaseik','Malines',
37 'Malmedy','Marche-en-Famenne','Menin','Messines','Mons','Montaigu-Zichem','Mortsel','Mouscron','Namur','Neufchâteau','Nieuport',
38 'Ninove','Nivelles','Ostende','Ottignies-Louvain-la-Neuve','Oudenburg','Peer','Péruwelz','Philippeville','Poperinge','Renaix','Rochefort','Roulers',
39 'Saint-Ghislain','Saint-Hubert','Saint-Nicolas','Saint-Trond','Saint-Vith','Seraing','Soignies','Stavelot','Termonde','Thuin',
40 'Tielt','Tirlemont','Tongres','Torhout','Tournai','Turnhout','Verviers','Vilvorde','Virton','Visé','Walcourt','Waregem','Waremme','Wavre','Wervik',
41 'Ypres','Zottegem'
42 );
43
44 protected static $region = array(
45 'Wallonie', 'Flandre', 'Bruxelles-Capitale'
46 );
47
48 protected static $province = array(
49 'Anvers', 'Limbourg', 'Flandre orientale', 'Brabant flamand', 'Flandre occidentale',
50 'Hainaut', 'Liège', 'Luxembourg', 'Namur', 'Brabant wallon'
51 );
52
53 /**
54 * Randomly returns a belgian province.
55 *
56 * @example 'Hainaut'
57 *
58 * @return string
59 */
60 public static function province()
61 {
62 return static::randomElement(static::$province);
63 }
64
65 /**
66 * @see parent
67 */
68 public function cityName()
69 {
70 return static::randomElement(static::$cityNames);
71 }
72 }
73