Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Faker\Provider\fr_BE;
4
 
5
class Address extends \Faker\Provider\fr_FR\Address
6
{
7
    protected static $postcode = ['####'];
8
 
9
    protected static $streetAddressFormats = [
10
        '{{streetName}} {{buildingNumber}}',
11
    ];
12
 
13
    protected static $streetNameFormats = ['{{streetSuffix}} {{lastName}}'];
14
 
15
    protected static $cityFormats = ['{{cityName}}'];
16
 
17
    protected static $addressFormats = [
18
        "{{streetAddress}}\n {{postcode}} {{city}}",
19
    ];
20
 
21
    protected static $streetSuffix = [
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 = [
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 = [
45
        'Wallonie', 'Flandre', 'Bruxelles-Capitale',
46
    ];
47
 
48
    protected static $province = [
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
}