| 1 | <?php |
||
| 9 | class ValidationException extends Exception |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ConstraintViolationListInterface |
||
|
|
|||
| 13 | */ |
||
| 14 | protected $violations; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param ConstraintViolationListInterface $violations |
||
| 18 | */ |
||
| 19 | public function __construct(ConstraintViolationListInterface $violations) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function __toString() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param ConstraintViolationListInterface $violations |
||
| 45 | */ |
||
| 46 | public function setViolations(ConstraintViolationListInterface $violations) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Returns all violations. |
||
| 53 | * |
||
| 54 | * @return ConstraintViolationListInterface |
||
| 55 | */ |
||
| 56 | public function getViolations() |
||
| 60 | } |
||
| 61 |