| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.0625 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 1 | public function __construct( |
|
| 31 | $message = null, |
||
| 32 | $code = 0, |
||
| 33 | Exception $previous = null |
||
| 34 | ) { |
||
| 35 | 1 | if ($message === null) { |
|
| 36 | // Workaround for HHVM that doesn't support shadowing of properties |
||
| 37 | // for Exceptions |
||
| 38 | $message = $this->message; |
||
| 39 | } |
||
| 40 | |||
| 41 | 1 | return parent::__construct($message, $code, $previous); |
|
|
|
|||
| 42 | } |
||
| 43 | |||
| 62 |