Метод | Описание | |
---|---|---|
computeCheckDigit ( $partialNumber ) : string | ||
generateLuhnNumber ( $partialValue ) : string | Generate a Luhn compliant number. | |
isValid ( string $number ) : boolean | Checks whether a number (partial number + check digit) is Luhn compliant |
Метод | Описание | |
---|---|---|
checksum ( string $number ) : integer |
public static computeCheckDigit ( $partialNumber ) : string | ||
$partialNumber | ||
Результат | string |
public static generateLuhnNumber ( $partialValue ) : string | ||
Результат | string |