| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ValidationException extends RuntimeException |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ConstraintViolationListInterface |
||
| 14 | */ |
||
| 15 | private $violations; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @inheritDoc |
||
| 19 | */ |
||
| 20 | public function __construct($message, ConstraintViolationListInterface $violations) |
||
| 21 | { |
||
| 22 | parent::__construct($message); |
||
| 23 | $this->violations = $violations; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return ConstraintViolationListInterface |
||
| 28 | */ |
||
| 29 | public function getViolations(): ConstraintViolationListInterface |
||
| 32 | } |
||
| 33 | } |
||
| 34 |