Total Complexity | 4 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
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 |
||
31 | { |
||
32 | $this->failures = $failures; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Gets the failures from the filter. |
||
37 | * |
||
38 | * @return FailureCollection |
||
39 | */ |
||
40 | public function getFailures(): FailureCollection |
||
41 | { |
||
42 | return $this->failures; |
||
43 | } |
||
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 |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Gets the subject of the filter. |
||
59 | * |
||
60 | * @return mixed |
||
61 | */ |
||
62 | public function getSubject() |
||
65 | } |
||
66 | } |
||
67 |