1 | <?php |
||
10 | class Modulo97 extends Base implements Calculator |
||
11 | { |
||
12 | /** |
||
13 | * Check if the last two digits of number are valid modulo 97 check digits |
||
14 | * |
||
15 | * @throws InvalidStructureException If $number is not numerical |
||
16 | */ |
||
17 | 5 | public function isValid(string $number): bool |
|
22 | |||
23 | /** |
||
24 | * Calculate the modulo 97 check digits for number |
||
25 | * |
||
26 | * @throws InvalidStructureException If $number is not numerical |
||
27 | */ |
||
28 | 5 | public function calculateCheckDigit(string $number): string |
|
33 | } |
||
34 |