| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 21 | 4 | public function __construct(ConstraintViolationListInterface $constraintViolationList) |
|
| 22 | { |
||
| 23 | /** @var ConstraintViolationInterface $violation */ |
||
| 24 | 4 | foreach ($constraintViolationList as $violation) { |
|
| 25 | 4 | $this->errors[$violation->getPropertyPath()] = [ |
|
| 26 | 4 | 'message' => $violation->getMessageTemplate(), |
|
| 27 | 4 | 'parameters' => $violation->getParameters(), |
|
| 28 | ]; |
||
| 29 | } |
||
| 30 | 4 | } |
|
| 31 | |||
| 40 |