메소드 | 설명 | |
---|---|---|
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 |