| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | 1 | public static function instanceProtected(string $id): self |
|
| 46 | { |
||
| 47 | 1 | $message = <<<TXT |
|
| 48 | 1 | The instance '{$id}' is protected and cannot be extended. |
|
| 49 | Protected closures are treated as values, not as service factories. |
||
| 50 | |||
| 51 | Remove the protect() wrapper if you need to extend this service. |
||
| 52 | 1 | TXT; |
|
| 53 | 1 | return new self($message); |
|
| 54 | } |
||
| 56 |