1 | <?php |
||
10 | class Modulo97 implements Calculator |
||
11 | { |
||
12 | use AssertionsTrait; |
||
13 | |||
14 | /** |
||
15 | * Check if the last two digits of number are valid modulo 97 check digits |
||
16 | */ |
||
17 | 6 | public function isValid(string $number): bool |
|
22 | |||
23 | /** |
||
24 | * Calculate the modulo 97 check digits for number |
||
25 | */ |
||
26 | 6 | public function calculateCheckDigit(string $number): string |
|
31 | } |
||
32 |