Файл: vendor/fakerphp/faker/src/Faker/Calculator/TCNo.php
Строк: 36
<?php
namespace FakerCalculator;
/**
* @deprecated moved to tr_TRPerson, use {@link FakerProvidertr_TRPerson}.
* @see FakerProvidertr_TRPerson
*/
class TCNo
{
/**
* Generates Turkish Identity Number Checksum
* Gets first 9 digit as prefix and calculates checksum
*
* https://en.wikipedia.org/wiki/Turkish_Identification_Number
*
* @param string $identityPrefix
*
* @return string Checksum (two digit)
*
* @deprecated use {@link FakerProvidertr_TRPerson::tcNoChecksum()} instead
* @see FakerProvidertr_TRPerson::tcNoChecksum()
*/
public static function checksum($identityPrefix)
{
return FakerProvidertr_TRPerson::tcNoChecksum($identityPrefix);
}
/**
* Checks whether a TCNo has a valid checksum
*
* @param string $tcNo
*
* @return bool
*
* @deprecated use {@link FakerProvidertr_TRPerson::tcNoIsValid()} instead
* @see FakerProvidertr_TRPerson::tcNoIsValid()
*/
public static function isValid($tcNo)
{
return FakerProvidertr_TRPerson::tcNoIsValid($tcNo);
}
}