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 / fr_BE / Address.php
kubio / vendor / fzaninotto / faker / src / Faker / Provider / fr_BE Last commit date
Address.php 1 year ago Company.php 1 year ago Internet.php 1 year ago Payment.php 1 year ago Person.php 1 year ago PhoneNumber.php 1 year ago
Address.php
73 lines
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