Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | 1 | public static function newInstance() |
|
13 | { |
||
14 | 1 | $backTrack = debug_backtrace()[1]; |
|
15 | 1 | return new static( |
|
16 | 1 | sprintf("Method %s::%s not implemented yet, but called in %s on line %d", |
|
17 | 1 | $backTrack['class'], |
|
18 | 1 | $backTrack['function'], |
|
19 | 1 | $backTrack['file'], |
|
20 | 1 | $backTrack['line'] |
|
21 | 1 | ) |
|
22 | 1 | ); |
|
23 | } |
||
24 | } |