Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
16 | public function getViolations(): ConstraintViolationListInterface |
||
17 | { |
||
18 | if (null === $this->validator) { |
||
19 | $this->validator = Validation::createValidatorBuilder() |
||
20 | ->addMethodMapping('loadValidatorMetadata') |
||
21 | ->getValidator(); |
||
22 | } |
||
23 | |||
24 | return $this->validator->validate($this); |
||
25 | } |
||
32 |