PHP Class Faker\Provider\ro_RO\Person

Inheritance: extends Faker\Provider\Person
Mostra file Open project: fzaninotto/faker

Protected Properties

Property 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

Public Methods

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

Protected Methods

Method 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 method

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
return string 13 digits CNP code

getChecksumDigit() protected method

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

getDateOfBirth() protected method

protected getDateOfBirth ( $dateOfBirth ) : DateTime
$dateOfBirth
return DateTime

getGenderDigit() protected static method

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
return 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