Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
19 | 1 | public function __construct($message, Closure $func = null) |
|
20 | { |
||
21 | 1 | if ($func !== null) { |
|
22 | 1 | $fn = new ReflectionFunction($func); |
|
23 | 1 | $source = $fn->getFileName() . '#' . $fn->getStartLine(); |
|
24 | 1 | $message = $message . ' at ' . $source; |
|
25 | 1 | } |
|
26 | |||
27 | 1 | parent::__construct($message); |
|
28 | 1 | } |
|
29 | } |
||
30 |