ar_EG
2 years ago
ar_JO
2 years ago
ar_SA
2 years ago
at_AT
2 years ago
bg_BG
2 years ago
bn_BD
2 years ago
cs_CZ
2 years ago
da_DK
2 years ago
de_AT
2 years ago
de_CH
2 years ago
de_DE
2 years ago
el_CY
2 years ago
el_GR
2 years ago
en_AU
2 years ago
en_CA
2 years ago
en_GB
2 years ago
en_HK
2 years ago
en_IN
2 years ago
en_NG
2 years ago
en_NZ
2 years ago
en_PH
2 years ago
en_SG
2 years ago
en_UG
2 years ago
en_US
2 years ago
en_ZA
2 years ago
es_AR
2 years ago
es_ES
2 years ago
es_PE
2 years ago
es_VE
2 years ago
et_EE
2 years ago
fa_IR
2 years ago
fi_FI
2 years ago
fr_BE
2 years ago
fr_CA
2 years ago
fr_CH
2 years ago
fr_FR
2 years ago
he_IL
2 years ago
hr_HR
2 years ago
hu_HU
2 years ago
hy_AM
2 years ago
id_ID
2 years ago
is_IS
2 years ago
it_CH
2 years ago
it_IT
2 years ago
ja_JP
2 years ago
ka_GE
2 years ago
kk_KZ
2 years ago
ko_KR
2 years ago
lt_LT
2 years ago
lv_LV
2 years ago
me_ME
2 years ago
mn_MN
2 years ago
ms_MY
2 years ago
nb_NO
2 years ago
ne_NP
2 years ago
nl_BE
2 years ago
nl_NL
2 years ago
pl_PL
2 years ago
pt_BR
2 years ago
pt_PT
2 years ago
ro_MD
2 years ago
ro_RO
2 years ago
ru_RU
2 years ago
sk_SK
2 years ago
sl_SI
2 years ago
sr_Cyrl_RS
2 years ago
sr_Latn_RS
2 years ago
sr_RS
2 years ago
sv_SE
2 years ago
th_TH
2 years ago
tr_TR
2 years ago
uk_UA
2 years ago
vi_VN
2 years ago
zh_CN
2 years ago
zh_TW
2 years ago
Address.php
2 years ago
Barcode.php
2 years ago
Base.php
2 years ago
Biased.php
2 years ago
Color.php
2 years ago
Company.php
2 years ago
DateTime.php
2 years ago
File.php
2 years ago
HtmlLorem.php
2 years ago
Image.php
2 years ago
Internet.php
2 years ago
Lorem.php
2 years ago
Medical.php
2 years ago
Miscellaneous.php
2 years ago
Payment.php
2 years ago
Person.php
2 years ago
PhoneNumber.php
2 years ago
Text.php
2 years ago
UserAgent.php
2 years ago
Uuid.php
2 years ago
Company.php
57 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @license MIT |
| 4 | * |
| 5 | * Modified by impress-org on 23-January-2024 using Strauss. |
| 6 | * @see https://github.com/BrianHenryIE/strauss |
| 7 | */ |
| 8 | |
| 9 | namespace Give\Vendors\Faker\Provider; |
| 10 | |
| 11 | class Company extends Base |
| 12 | { |
| 13 | protected static $formats = [ |
| 14 | '{{lastName}} {{companySuffix}}', |
| 15 | ]; |
| 16 | |
| 17 | protected static $companySuffix = ['Ltd']; |
| 18 | |
| 19 | protected static $jobTitleFormat = [ |
| 20 | '{{word}}', |
| 21 | ]; |
| 22 | |
| 23 | /** |
| 24 | * @example 'Acme Ltd' |
| 25 | * |
| 26 | * @return string |
| 27 | */ |
| 28 | public function company() |
| 29 | { |
| 30 | $format = static::randomElement(static::$formats); |
| 31 | |
| 32 | return $this->generator->parse($format); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * @example 'Ltd' |
| 37 | * |
| 38 | * @return string |
| 39 | */ |
| 40 | public static function companySuffix() |
| 41 | { |
| 42 | return static::randomElement(static::$companySuffix); |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * @example 'Job' |
| 47 | * |
| 48 | * @return string |
| 49 | */ |
| 50 | public function jobTitle() |
| 51 | { |
| 52 | $format = static::randomElement(static::$jobTitleFormat); |
| 53 | |
| 54 | return $this->generator->parse($format); |
| 55 | } |
| 56 | } |
| 57 |