| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 19 | public function __construct(string $message = '', $object = null, int $code = 0, Throwable $previous = null) |
|
| 23 | { |
||
| 24 | 19 | if (!$message) { |
|
| 25 | 1 | throw new $this('Unknown '.\get_class($this)); |
|
| 26 | } |
||
| 27 | 19 | $this->object = $object; |
|
| 28 | 19 | parent::__construct($message, $code, $previous); |
|
| 29 | 19 | } |
|
| 46 |