| 1 | <?php |
||
| 7 | class ValidationFailureException extends \Exception |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Failures from the filter. |
||
| 11 | * |
||
| 12 | * @var FailureCollection |
||
| 13 | */ |
||
| 14 | protected $failures; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The subject being filtered. |
||
| 18 | * |
||
| 19 | * @var mixed |
||
| 20 | */ |
||
| 21 | protected $subject; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Sets the failures from the filter. |
||
| 25 | * |
||
| 26 | * @param FailureCollection $failures The filter failures. |
||
| 27 | * |
||
| 28 | * @return null |
||
| 29 | */ |
||
| 30 | public function setFailures(FailureCollection $failures): void |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Gets the failures from the filter. |
||
| 37 | * |
||
| 38 | * @return FailureCollection |
||
| 39 | */ |
||
| 40 | public function getFailures(): FailureCollection |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Sets the subject of the filter. |
||
| 47 | * |
||
| 48 | * @param mixed $subject The subject being filtered. |
||
| 49 | * |
||
| 50 | * @return null |
||
| 51 | */ |
||
| 52 | public function setSubject($subject): void |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Gets the subject of the filter. |
||
| 59 | * |
||
| 60 | * @return mixed |
||
| 61 | */ |
||
| 62 | public function getSubject() |
||
| 66 | } |
||
| 67 |