Total Complexity | 8 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 89.47% |
Changes | 0 |
1 | <?php |
||
13 | class LuhnCalculator implements LuhnCalculatorInterface |
||
14 | { |
||
15 | 6 | protected function checksum(string $number): int |
|
29 | } |
||
30 | |||
31 | 5 | public function computeCheckDigit(string $partialNumber): string |
|
40 | } |
||
41 | |||
42 | 1 | public function isValid(string $number): bool |
|
45 | } |
||
46 | |||
47 | 1 | public function generateLuhnNumber(string $partialValue): string |
|
56 |