Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
58 | public function addException(\Exception $exception) |
||
59 | { |
||
60 | if ($this->exception) { |
||
61 | if (null == $this->nextExceptionContext) { |
||
62 | $this->nextExceptionContext = new self($exception); |
||
63 | |||
64 | return $this->nextExceptionContext; |
||
65 | } else { |
||
66 | return $this->nextExceptionContext->addException($exception); |
||
67 | } |
||
68 | } else { |
||
69 | $this->exception = $exception; |
||
70 | } |
||
71 | |||
72 | return $this; |
||
73 | } |
||
75 |