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