1 | <?php |
||
10 | class Modulo10 |
||
11 | { |
||
12 | /** |
||
13 | * Verify that the last digit of id is a valid modulo 10 check digit |
||
14 | * |
||
15 | * @throws InvalidCheckDigitException If check digit is not valid |
||
16 | */ |
||
17 | public static function validateCheckDigit(IdInterface $id): void |
||
25 | |||
26 | private static function calculateCheckDigit(string $number): string |
||
45 | } |
||
46 |