PHP Класс Faker\Provider\ro_RO\Person

Наследование: extends Faker\Provider\Person
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
cnp ( null | string $gender = null, null | string $dateOfBirth = null, null | string $county = null, null | boolean $isResident = true ) : string Personal Numerical Code (CNP)

Защищенные методы

Метод Описание
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

Описание методов

cnp() публичный Метод

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
Результат string 13 digits CNP code

getChecksumDigit() защищенный Метод

Calculates a checksum for the Personal Numerical Code (CNP).
protected getChecksumDigit ( string $value ) : integer
$value string 12 digit CNP
Результат integer checksum digit

getDateOfBirth() защищенный Метод

protected getDateOfBirth ( $dateOfBirth ) : DateTime
$dateOfBirth
Результат DateTime

getGenderDigit() защищенный статический Метод

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
Результат integer

Описание свойств

$cnpCountyCodes защищенное статическое свойство

protected static $cnpCountyCodes

$femaleNameFormats защищенное статическое свойство

protected static $femaleNameFormats

$firstNameFemale защищенное статическое свойство

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

$firstNameMale защищенное статическое свойство

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

$lastName защищенное статическое свойство

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

$maleNameFormats защищенное статическое свойство

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

$titleFemale защищенное статическое свойство

protected static $titleFemale

$titleMale защищенное статическое свойство

protected static $titleMale