芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/vendor/fakerphp/faker/src/Faker/Provider/en_ZA/Person.php
generator->dateTimeThisCentury(); } $birthDateString = $birthdate->format('ymd'); switch (strtolower($gender ?: '')) { case static::GENDER_FEMALE: $genderDigit = self::numberBetween(0, 4); break; case static::GENDER_MALE: $genderDigit = self::numberBetween(5, 9); break; default: $genderDigit = self::numberBetween(0, 9); } $sequenceDigits = str_pad(self::randomNumber(3), 3, 0, STR_PAD_BOTH); $citizenDigit = ($citizen === true) ? '0' : '1'; $raceDigit = self::numberBetween(8, 9); $partialIdNumber = $birthDateString . $genderDigit . $sequenceDigits . $citizenDigit . $raceDigit; return $partialIdNumber . Luhn::computeCheckDigit($partialIdNumber); } /** * @see https://en.wikipedia.org/wiki/Driving_licence_in_South_Africa * * @return string */ public function licenceCode() { return static::randomElement(static::$licenceCodes); } }