Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | class EwarehousingException extends Exception |
||
19 | { |
||
20 | /** @var Throwable[] */ |
||
21 | protected $childErrors = []; |
||
22 | |||
23 | /** |
||
24 | * @param Throwable $throwable |
||
25 | * |
||
26 | * @return $this |
||
27 | */ |
||
28 | public function addChild(Throwable $throwable) |
||
29 | { |
||
30 | $this->childErrors[] = $throwable; |
||
31 | |||
32 | return $this; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return $this |
||
37 | */ |
||
38 | public function clearChilds() |
||
39 | { |
||
40 | $this->childErrors = []; |
||
41 | |||
42 | return $this; |
||
43 | } |
||
44 | |||
45 | public function getChilds() |
||
48 | } |
||
49 | |||
50 | public function hasChilds() |
||
53 | } |
||
54 | } |
||
55 |