Address.php
5 years ago
Company.php
5 years ago
Internet.php
5 years ago
Person.php
5 years ago
Text.php
5 years ago
Company.php
90 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Faker\Provider\ar_JO; |
| 4 | |
| 5 | class Company extends \Faker\Provider\Company |
| 6 | { |
| 7 | protected static $formats = array( |
| 8 | '{{lastName}} {{companySuffix}}', |
| 9 | '{{companyPrefix}} {{lastName}} {{companySuffix}}', |
| 10 | '{{companyPrefix}} {{lastName}}', |
| 11 | ); |
| 12 | |
| 13 | protected static $bsWords = array( |
| 14 | array() |
| 15 | ); |
| 16 | |
| 17 | protected static $catchPhraseWords = array( |
| 18 | array('الخد� |
| 19 | ات','الحلول','الانظ� |
| 20 | ة'), |
| 21 | array( |
| 22 | 'الذهبية','الذكية','ال� |
| 23 | تطورة','ال� |
| 24 | تقد� |
| 25 | ة', 'الدولية', 'ال� |
| 26 | تخصصه', 'السريعة', |
| 27 | 'ال� |
| 28 | ثلى', 'الابداعية', 'ال� |
| 29 | تكا� |
| 30 | لة', 'ال� |
| 31 | تغيرة', 'ال� |
| 32 | ثالية' |
| 33 | ), |
| 34 | ); |
| 35 | |
| 36 | protected static $companyPrefix = array('شركة','� |
| 37 | ؤسسة','� |
| 38 | ج� |
| 39 | وعة','� |
| 40 | كتب','أكادي� |
| 41 | ية','� |
| 42 | عرض'); |
| 43 | |
| 44 | protected static $companySuffix = array('وأولاده', 'لل� |
| 45 | ساه� |
| 46 | ة ال� |
| 47 | حدودة', ' ذ.� |
| 48 | .� |
| 49 | ', '� |
| 50 | ساه� |
| 51 | ة عا� |
| 52 | ة', 'وشركائه'); |
| 53 | |
| 54 | /** |
| 55 | * @example '� |
| 56 | ؤسسة' |
| 57 | * @return string |
| 58 | */ |
| 59 | public function companyPrefix() |
| 60 | { |
| 61 | return static::randomElement(self::$companyPrefix); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * @example 'Robust full-range hub' |
| 66 | */ |
| 67 | public function catchPhrase() |
| 68 | { |
| 69 | $result = array(); |
| 70 | foreach (static::$catchPhraseWords as &$word) { |
| 71 | $result[] = static::randomElement($word); |
| 72 | } |
| 73 | |
| 74 | return join(' ', $result); |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * @example 'integrate extensible convergence' |
| 79 | */ |
| 80 | public function bs() |
| 81 | { |
| 82 | $result = array(); |
| 83 | foreach (static::$bsWords as &$word) { |
| 84 | $result[] = static::randomElement($word); |
| 85 | } |
| 86 | |
| 87 | return join(' ', $result); |
| 88 | } |
| 89 | } |
| 90 |