PATH:
home
/
centosnipponia
/
public_html
/
apptt-oldgit
/
vendor
/
fzaninotto
/
faker
/
src
/
Faker
/
Provider
<?php namespace Faker\Provider; class Person extends Base { const GENDER_MALE = 'male'; const GENDER_FEMALE = 'female'; protected static $titleFormat = array( '{{titleMale}}', '{{titleFemale}}', ); protected static $firstNameFormat = array( '{{firstNameMale}}', '{{firstNameFemale}}', ); protected static $maleNameFormats = array( '{{firstNameMale}} {{lastName}}', ); protected static $femaleNameFormats = array( '{{firstNameFemale}} {{lastName}}', ); protected static $firstNameMale = array( 'John', ); protected static $firstNameFemale = array( 'Jane', ); protected static $lastName = array('Doe'); protected static $titleMale = array('Mr.', 'Dr.', 'Prof.'); protected static $titleFemale = array('Mrs.', 'Ms.', 'Miss', 'Dr.', 'Prof.'); /** * @param string|null $gender 'male', 'female' or null for any * @return string * @example 'John Doe' */ public function name($gender = null) { if ($gender === static::GENDER_MALE) { $format = static::randomElement(static::$maleNameFormats); } elseif ($gender === static::GENDER_FEMALE) { $format = static::randomElement(static::$femaleNameFormats); } else { $format = static::randomElement(array_merge(static::$maleNameFormats, static::$femaleNameFormats)); } return $this->generator->parse($format); } /** * @param string|null $gender 'male', 'female' or null for any * @return string * @example 'John' */ public function firstName($gender = null) { if ($gender === static::GENDER_MALE) { return static::firstNameMale(); } elseif ($gender === static::GENDER_FEMALE) { return static::firstNameFemale(); } return $this->generator->parse(static::randomElement(static::$firstNameFormat)); } public static function firstNameMale() { return static::randomElement(static::$firstNameMale); } public static function firstNameFemale() { return static::randomElement(static::$firstNameFemale); } /** * @example 'Doe' * @return string */ public function lastName() { return static::randomElement(static::$lastName); } /** * @example 'Mrs.' * @param string|null $gender 'male', 'female' or null for any * @return string */ public function title($gender = null) { if ($gender === static::GENDER_MALE) { return static::titleMale(); } elseif ($gender === static::GENDER_FEMALE) { return static::titleFemale(); } return $this->generator->parse(static::randomElement(static::$titleFormat)); } /** * @example 'Mr.' */ public static function titleMale() { return static::randomElement(static::$titleMale); } /** * @example 'Mrs.' */ public static function titleFemale() { return static::randomElement(static::$titleFemale); } }
[+]
..
[-] DateTime.php
[edit]
[+]
en_AU
[+]
fi_FI
[+]
ru_RU
[+]
hu_HU
[+]
he_IL
[+]
de_DE
[-] Internet.php
[edit]
[+]
id_ID
[+]
bg_BG
[-] Text.php
[edit]
[-] Image.php
[edit]
[-] Lorem.php
[edit]
[+]
pt_BR
[+]
ka_GE
[+]
ar_SA
[+]
lv_LV
[+]
sk_SK
[+]
en_NG
[+]
sr_RS
[+]
me_ME
[+]
en_PH
[+]
en_CA
[+]
es_AR
[+]
zh_TW
[+]
ko_KR
[+]
el_CY
[+]
de_AT
[+]
ne_NP
[-] Miscellaneous.php
[edit]
[+]
en_NZ
[-] UserAgent.php
[edit]
[+]
sr_Latn_RS
[+]
ar_JO
[+]
bn_BD
[+]
sv_SE
[+]
pt_PT
[+]
es_PE
[+]
et_EE
[+]
hr_HR
[+]
vi_VN
[+]
mn_MN
[+]
de_CH
[+]
da_DK
[-] Uuid.php
[edit]
[+]
en_UG
[+]
el_GR
[-] Barcode.php
[edit]
[+]
ro_RO
[+]
at_AT
[+]
en_US
[+]
it_CH
[-] Color.php
[edit]
[+]
nl_NL
[+]
ro_MD
[+]
ms_MY
[+]
sr_Cyrl_RS
[+]
th_TH
[+]
nl_BE
[+]
fr_CA
[+]
en_SG
[-] Biased.php
[edit]
[+]
it_IT
[-] Base.php
[edit]
[-] Address.php
[edit]
[+]
en_GB
[+]
cs_CZ
[+]
fr_BE
[-] HtmlLorem.php
[edit]
[+]
ja_JP
[+]
es_VE
[+]
tr_TR
[-] Payment.php
[edit]
[-] File.php
[edit]
[+]
nb_NO
[+]
fa_IR
[+]
kk_KZ
[+]
en_HK
[+]
fr_CH
[+]
is_IS
[-] PhoneNumber.php
[edit]
[+]
lt_LT
[+]
en_IN
[+]
en_ZA
[+]
fr_FR
[+]
pl_PL
[+]
hy_AM
[-] Person.php
[edit]
[+]
zh_CN
[-] Company.php
[edit]
[+]
uk_UA
[+]
sl_SI
[+]
es_ES
[-] .htaccess.disabled
[edit]