PHP Class Faker\Provider\ro_RO\Person

Inheritance: extends Faker\Provider\Person
Afficher le fichier Open project: fzaninotto/faker

Protected Properties

Свойство Type Description
$cnpCountyCodes
$femaleNameFormats
$firstNameFemale http://ro.wikipedia.org/wiki/List%C4%83_de_prenume_rom%C3%A2ne%C8%99ti#Feminine
$firstNameMale http://ro.wikipedia.org/wiki/List%C4%83_de_prenume_rom%C3%A2ne%C8%99ti#Feminine
$lastName courtesy of Florin LIPAN, at nume.ottomotor.ro
$maleNameFormats http://en.wikipedia.org/wiki/Romanian_name, prefixes are for more formal purposes
$titleFemale
$titleMale

Méthodes publiques

Méthode Description
cnp ( null | string $gender = null, null | string $dateOfBirth = null, null | string $county = null, null | boolean $isResident = true ) : string Personal Numerical Code (CNP)

Méthodes protégées

Méthode Description
getChecksumDigit ( string $value ) : integer Calculates a checksum for the Personal Numerical Code (CNP).
getDateOfBirth ( $dateOfBirth ) : DateTime
getGenderDigit ( DateTime $dateOfBirth, string $gender, boolean $isResident ) : integer https://ro.wikipedia.org/wiki/Cod_numeric_personal#S

Method Details

cnp() public méthode

Personal Numerical Code (CNP)
public cnp ( null | string $gender = null, null | string $dateOfBirth = null, null | string $county = null, null | boolean $isResident = true ) : string
$gender null | string Person::GENDER_MALE or Person::GENDER_FEMALE
$dateOfBirth null | string (1800-2099) 'Y-m-d', 'Y-m', 'Y' I.E. '1981-06-16', '2085-03', '1900'
$county null | string county code where the CNP was issued
$isResident null | boolean flag if the person resides in Romania
Résultat string 13 digits CNP code

getChecksumDigit() protected méthode

Calculates a checksum for the Personal Numerical Code (CNP).
protected getChecksumDigit ( string $value ) : integer
$value string 12 digit CNP
Résultat integer checksum digit

getDateOfBirth() protected méthode

protected getDateOfBirth ( $dateOfBirth ) : DateTime
$dateOfBirth
Résultat DateTime

getGenderDigit() protected static méthode

https://ro.wikipedia.org/wiki/Cod_numeric_personal#S
protected static getGenderDigit ( DateTime $dateOfBirth, string $gender, boolean $isResident ) : integer
$dateOfBirth DateTime
$gender string
$isResident boolean
Résultat integer

Property Details

$cnpCountyCodes protected_oe static_oe property

protected static $cnpCountyCodes

$femaleNameFormats protected_oe static_oe property

protected static $femaleNameFormats

$firstNameFemale protected_oe static_oe property

http://ro.wikipedia.org/wiki/List%C4%83_de_prenume_rom%C3%A2ne%C8%99ti#Feminine
protected static $firstNameFemale

$firstNameMale protected_oe static_oe property

http://ro.wikipedia.org/wiki/List%C4%83_de_prenume_rom%C3%A2ne%C8%99ti#Feminine
protected static $firstNameMale

$lastName protected_oe static_oe property

courtesy of Florin LIPAN, at nume.ottomotor.ro
protected static $lastName

$maleNameFormats protected_oe static_oe property

http://en.wikipedia.org/wiki/Romanian_name, prefixes are for more formal purposes
protected static $maleNameFormats

$titleFemale protected_oe static_oe property

protected static $titleFemale

$titleMale protected_oe static_oe property

protected static $titleMale