| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | 1 | public static function instanceNotExtendable(): self |
|
| 13 | { |
||
| 14 | 1 | $message = <<<TXT |
|
| 15 | The passed instance is not extendable. |
||
| 16 | Only objects, arrays, and callables can be extended. |
||
| 17 | |||
| 18 | Ensure the service is one of these types before calling extend(). |
||
| 19 | 1 | TXT; |
|
| 20 | 1 | return new self($message); |
|
| 21 | } |
||
| 56 |