| 1 | <?php |
||
| 8 | class AmkaValidator extends ConstraintValidator |
||
| 9 | { |
||
| 10 | 21 | public function validate($value, Constraint $constraint) |
|
| 32 | |||
| 33 | 16 | private function calculateChecksum(string $amka): int |
|
| 50 | |||
| 51 | 16 | private function isOdd($index): bool |
|
| 55 | |||
| 56 | 5 | private function buildViolation($value, $constraint): void |
|
| 62 | } |