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\ar_JO;
4
 
5
class Company extends \Faker\Provider\Company
6
{
7
    protected static $formats = [
8
        '{{lastName}} {{companySuffix}}',
9
        '{{companyPrefix}} {{lastName}} {{companySuffix}}',
10
        '{{companyPrefix}} {{lastName}}',
11
    ];
12
 
13
    protected static $bsWords = [
14
        [],
15
    ];
16
 
17
    protected static $catchPhraseWords = [
18
        ['الخدمات', 'الحلول', 'الانظمة'],
19
        [
20
            'الذهبية', 'الذكية', 'المتطورة', 'المتقدمة', 'الدولية', 'المتخصصه', 'السريعة',
21
            'المثلى', 'الابداعية', 'المتكاملة', 'المتغيرة', 'المثالية',
22
        ],
23
    ];
24
 
25
    protected static $companyPrefix = ['شركة', 'مؤسسة', 'مجموعة', 'مكتب', 'أكاديمية', 'معرض'];
26
 
27
    protected static $companySuffix = ['وأولاده', 'للمساهمة المحدودة', ' ذ.م.م', 'مساهمة عامة', 'وشركائه'];
28
 
29
    /**
30
     * @example 'مؤسسة'
31
     *
32
     * @return string
33
     */
34
    public function companyPrefix()
35
    {
36
        return static::randomElement(self::$companyPrefix);
37
    }
38
 
39
    /**
40
     * @example 'Robust full-range hub'
41
     */
42
    public function catchPhrase()
43
    {
44
        $result = [];
45
 
46
        foreach (static::$catchPhraseWords as &$word) {
47
            $result[] = static::randomElement($word);
48
        }
49
 
50
        return implode(' ', $result);
51
    }
52
 
53
    /**
54
     * @example 'integrate extensible convergence'
55
     */
56
    public function bs()
57
    {
58
        $result = [];
59
 
60
        foreach (static::$bsWords as &$word) {
61
            $result[] = static::randomElement($word);
62
        }
63
 
64
        return implode(' ', $result);
65
    }
66
}