PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / trunk
Kubio AI Page Builder vtrunk
2.9.0 2.8.6 2.8.5 2.8.4 2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / vendor / fzaninotto / faker / src / Faker / Provider / ar_SA / Company.php
kubio / vendor / fzaninotto / faker / src / Faker / Provider / ar_SA Last commit date
Address.php 1 year ago Color.php 1 year ago Company.php 1 year ago Internet.php 1 year ago Payment.php 1 year ago Person.php 1 year ago Text.php 1 year ago
Company.php
103 lines
1 <?php
2
3 namespace Faker\Provider\ar_SA;
4
5 use Faker\Calculator\Luhn;
6
7 class Company extends \Faker\Provider\Company
8 {
9 protected static $formats = array(
10 '{{lastName}} {{companySuffix}}',
11 '{{companyPrefix}} {{lastName}} {{companySuffix}}',
12 '{{companyPrefix}} {{lastName}}',
13 );
14
15 protected static $bsWords = array(
16 array()
17 );
18
19 protected static $catchPhraseWords = array(
20 array('الخد�
21 ات','الحلول','الانظ�
22 ة'),
23 array(
24 'الذهبية','الذكية','ال�
25 تطورة','ال�
26 تقد�
27 ة', 'الدولية', 'ال�
28 تخصصه', 'السريعة',
29 'ال�
30 ثلى', 'الابداعية', 'ال�
31 تكا�
32 لة', 'ال�
33 تغيرة', 'ال�
34 ثالية'
35 ),
36 );
37
38 protected static $companyPrefix = array('شركة', '�
39 ؤسسة', '�
40 ج�
41 وعة', '�
42 كتب', 'أكادي�
43 ية', '�
44 عرض');
45
46 protected static $companySuffix = array('وأولاده', 'لل�
47 ساه�
48 ة ال�
49 حدودة', ' ذ.�
50 .�
51 ', '�
52 ساه�
53 ة عا�
54 ة', 'وشركائه');
55
56 /**
57 * @example '�
58 ؤسسة'
59 * @return string
60 */
61 public function companyPrefix()
62 {
63 return static::randomElement(self::$companyPrefix);
64 }
65
66 /**
67 * @example 'الحلول ال�
68 تقد�
69 ة'
70 */
71 public function catchPhrase()
72 {
73 $result = array();
74 foreach (static::$catchPhraseWords as &$word) {
75 $result[] = static::randomElement($word);
76 }
77
78 return join(' ', $result);
79 }
80
81 /**
82 * @example 'integrate extensible convergence'
83 */
84 public function bs()
85 {
86 $result = array();
87 foreach (static::$bsWords as &$word) {
88 $result[] = static::randomElement($word);
89 }
90
91 return join(' ', $result);
92 }
93
94 /**
95 * example 7001010101
96 **/
97 public static function companyIdNumber()
98 {
99 $partialValue = static::numerify(700 . str_repeat('#', 6));
100 return Luhn::generateLuhnNumber($partialValue);
101 }
102 }
103