Address.php
5 years ago
Company.php
5 years ago
Internet.php
5 years ago
Person.php
5 years ago
PhoneNumber.php
5 years ago
Text.php
5 years ago
Company.php
70 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Faker\Provider\fa_IR; |
| 4 | |
| 5 | class Company extends \Faker\Provider\Company |
| 6 | { |
| 7 | protected static $formats = array( |
| 8 | '{{companyPrefix}} {{companyField}} {{firstName}}', |
| 9 | '{{companyPrefix}} {{companyField}} {{firstName}}', |
| 10 | '{{companyPrefix}} {{companyField}} {{firstName}}', |
| 11 | '{{companyPrefix}} {{companyField}} {{firstName}}', |
| 12 | '{{companyPrefix}} {{companyField}} {{lastName}}', |
| 13 | '{{companyField}} {{firstName}}', |
| 14 | '{{companyField}} {{firstName}}', |
| 15 | '{{companyField}} {{lastName}}', |
| 16 | ); |
| 17 | |
| 18 | protected static $companyPrefix = array( |
| 19 | 'شرکت', '� |
| 20 | وسسه', 'ساز� |
| 21 | ان', 'بنیاد' |
| 22 | ); |
| 23 | |
| 24 | protected static $companyField = array( |
| 25 | 'فناوری اطلاعات', 'راه و ساخت� |
| 26 | ان', 'توسعه � |
| 27 | عادن', 'استخراج و اکتشاف', |
| 28 | 'سر� |
| 29 | ایه گذاری', 'نساجی', 'کاریابی', 'تجهیزات اداری', 'تولیدی', 'فولاد' |
| 30 | ); |
| 31 | |
| 32 | protected static $contract = array( |
| 33 | 'رس� |
| 34 | ی', 'پی� |
| 35 | انی', 'ت� |
| 36 | ا� |
| 37 | وقت', 'پاره وقت', 'پروژه ای', 'ساعتی', |
| 38 | ); |
| 39 | |
| 40 | /** |
| 41 | * @example 'شرکت' |
| 42 | * @return string |
| 43 | */ |
| 44 | public static function companyPrefix() |
| 45 | { |
| 46 | return static::randomElement(static::$companyPrefix); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * @example 'سر� |
| 51 | ایه گذاری' |
| 52 | * @return string |
| 53 | */ |
| 54 | public static function companyField() |
| 55 | { |
| 56 | return static::randomElement(static::$companyField); |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * @example 'ت� |
| 61 | ا� |
| 62 | وقت' |
| 63 | * @return string |
| 64 | */ |
| 65 | public function contract() |
| 66 | { |
| 67 | return static::randomElement(static::$contract); |
| 68 | } |
| 69 | } |
| 70 |