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\kk_KZ;
4
 
5
class Address extends \Faker\Provider\Address
6
{
7
    protected static $citySuffix = ['қаласы'];
8
 
9
    protected static $regionSuffix = ['облысы'];
10
    protected static $streetSuffix = [
11
        'көшесі', 'даңғылы',
12
    ];
13
 
14
    protected static $buildingNumber = ['%##'];
15
    protected static $postcode = ['0#####'];
16
    // TODO list all country names in the world
17
    protected static $country = [
18
        'Қазақстан',
19
        'Ресей',
20
    ];
21
 
22
    protected static $region = [
23
        'Алматы',
24
        'Ақтау',
25
        'Ақтөбе',
26
        'Астана',
27
        'Атырау',
28
        'Байқоңыр',
29
        'Қарағанды',
30
        'Көкшетау',
31
        'Қостанай',
32
        'Қызылорда',
33
        'Маңғыстау',
34
        'Павлодар',
35
        'Петропавл',
36
        'Талдықорған',
37
        'Тараз',
38
        'Орал',
39
        'Өскемен',
40
        'Шымкент',
41
    ];
42
 
43
    protected static $city = [
44
        'Алматы',
45
        'Ақтау',
46
        'Ақтөбе',
47
        'Астана',
48
        'Атырау',
49
        'Байқоңыр',
50
        'Қарағанды',
51
        'Көкшетау',
52
        'Қостанай',
53
        'Қызылорда',
54
        'Маңғыстау',
55
        'Павлодар',
56
        'Петропавл',
57
        'Талдықорған',
58
        'Тараз',
59
        'Орал',
60
        'Өскемен',
61
        'Шымкент',
62
    ];
63
 
64
    protected static $street = [
65
        'Абай',
66
        'Гоголь',
67
        'Кенесары',
68
        'Бейбітшілік',
69
        'Достық',
70
        'Бұқар жырау',
71
    ];
72
 
73
    protected static $addressFormats = [
74
        '{{postcode}}, {{region}} {{regionSuffix}}, {{city}} {{citySuffix}}, {{street}} {{streetSuffix}}, {{buildingNumber}}',
75
    ];
76
 
77
    protected static $streetAddressFormats = [
78
        '{{street}} {{streetSuffix}}, {{buildingNumber}}',
79
    ];
80
 
81
    public static function buildingNumber()
82
    {
83
        return static::numerify(static::randomElement(static::$buildingNumber));
84
    }
85
 
86
    public static function regionSuffix()
87
    {
88
        return static::randomElement(static::$regionSuffix);
89
    }
90
 
91
    public static function region()
92
    {
93
        return static::randomElement(static::$region);
94
    }
95
 
96
    public function city()
97
    {
98
        return static::randomElement(static::$city);
99
    }
100
 
101
    public static function street()
102
    {
103
        return static::randomElement(static::$street);
104
    }
105
}