Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
15 | 1 | public function __construct( |
|
16 | string $class, |
||
17 | string $method, |
||
18 | string $labelOfReturnType = 'property', |
||
19 | int $code = 0, |
||
20 | Throwable $previous = null |
||
21 | ) { |
||
22 | 1 | parent::__construct( |
|
|
|||
23 | 1 | sprintf( |
|
24 | 1 | '%s::%s() must return at least one %s', |
|
25 | 1 | $class, |
|
26 | 1 | $method, |
|
27 | 1 | $labelOfReturnType |
|
28 | ), |
||
29 | 1 | $code, |
|
30 | 1 | $previous |
|
31 | ); |
||
34 |