| 1 | <?php |
||
| 14 | class ValidationException extends Exception |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var ConstraintViolationListInterface |
||
| 18 | */ |
||
| 19 | protected $violations; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param ConstraintViolationListInterface $violations |
||
| 23 | */ |
||
| 24 | public function __construct(ConstraintViolationListInterface $violations) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function __toString() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param ConstraintViolationListInterface $violations |
||
| 50 | */ |
||
| 51 | public function setViolations(ConstraintViolationListInterface $violations) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Returns all violations. |
||
| 58 | * |
||
| 59 | * @return ConstraintViolationListInterface |
||
| 60 | */ |
||
| 61 | public function getViolations() |
||
| 65 | } |
||
| 66 |