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 |
Method | Description | |
---|---|---|
cnp ( null | string $gender = null, null | string $dateOfBirth = null, null | string $county = null, null | boolean $isResident = true ) : string | Personal Numerical Code (CNP) |
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 |
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 |
protected getChecksumDigit ( string $value ) : integer | ||
$value | string | 12 digit CNP |
return | integer | checksum digit |
protected getDateOfBirth ( $dateOfBirth ) : DateTime | ||
$dateOfBirth | ||
return | DateTime |
protected static $firstNameFemale |
protected static $firstNameMale |
protected static $lastName |
protected static $maleNameFormats |