| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ValidationFailedException extends RuntimeException |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ConstraintViolationListInterface |
||
| 13 | */ |
||
| 14 | private $list; |
||
| 15 | |||
| 16 | 1 | public function __construct(ConstraintViolationListInterface $list) |
|
| 17 | { |
||
| 18 | 1 | parent::__construct(sprintf('Validation failed with %d error(s).', \count($list))); |
|
| 19 | |||
| 20 | 1 | $this->list = $list; |
|
| 21 | 1 | } |
|
| 22 | |||
| 23 | public function getConstraintViolationList(): ConstraintViolationListInterface |
||
| 26 | } |
||
| 27 | } |
||
| 28 |