Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ValidatorAdapterZf implements ValidatorInterface |
||
12 | { |
||
13 | 13 | public function __construct( |
|
14 | private LaminasValidatorInterface $validator |
||
15 | 13 | ) {} |
|
16 | |||
17 | /** |
||
18 | * @todo exception types |
||
19 | * @throws Exception If validation of $value is impossible |
||
20 | */ |
||
21 | 10 | public function isValid(mixed $value): bool |
|
22 | { |
||
23 | 10 | return $this->validator->isValid($value); |
|
24 | } |
||
25 | |||
26 | 6 | public function getMessages(): array |
|
29 | } |
||
30 | |||
31 | |||
33 |