| 1 | <?php |
||
| 11 | class ValidationException extends \Exception implements Exception |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ConstraintViolationListInterface |
||
| 15 | */ |
||
| 16 | private $violations; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var integer |
||
| 20 | */ |
||
| 21 | private $lineNumber; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param ConstraintViolationListInterface $list |
||
| 25 | * @param integer $line |
||
| 26 | */ |
||
| 27 | 3 | public function __construct(ConstraintViolationListInterface $list, $line) |
|
| 28 | { |
||
| 29 | 3 | $this->violations = $list; |
|
| 30 | 3 | $this->lineNumber = $line; |
|
| 31 | 3 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return ConstraintViolationListInterface |
||
| 35 | */ |
||
| 36 | 2 | public function getViolations() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return integer |
||
| 43 | */ |
||
| 44 | 2 | public function getLineNumber() |
|
| 48 | } |
||
| 49 |