Faker\Provider\kk_KZ\Person::individualIdentificationNumber PHP Method

individualIdentificationNumber() public static method

National Individual Identification Numbers
public static individualIdentificationNumber ( DateTime $birthDate = null ) : string
$birthDate DateTime
return string 12 digits, like 780322300455
    public static function individualIdentificationNumber(\DateTime $birthDate = null)
    {
        if (!$birthDate) {
            $birthDate = \Faker\Provider\DateTime::dateTimeBetween();
        }
        $dateAsString = $birthDate->format('ymd');
        $genderAndCenturyId = (string) static::numberBetween(1, 6);
        $randomDigits = (string) static::numerify('#####');
        return $dateAsString . $genderAndCenturyId . $randomDigits;
    }