| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | public function __construct(?string $propertyName, ConstraintViolationListInterface $errors) |
||
| 14 | { |
||
| 15 | $message = sprintf('The configuration of the admin "%s" is not valid :', $propertyName); |
||
| 16 | |||
| 17 | /** @var ConstraintViolationInterface $error */ |
||
| 18 | foreach ($errors as $error) { |
||
| 19 | $message .= \PHP_EOL.$error->getPropertyPath().': '.$error->getMessage(); |
||
| 20 | } |
||
| 21 | |||
| 22 | parent::__construct($message); |
||
| 23 | } |
||
| 25 |