| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 4 | public static function frozenInstanceExtend(string $id): self |
|
| 24 | { |
||
| 25 | 4 | $message = <<<TXT |
|
| 26 | 4 | The instance '{$id}' is frozen and cannot be extended. |
|
| 27 | Services become frozen after being accessed via get() to ensure consistency. |
||
| 28 | |||
| 29 | Extend the service before accessing it, or use remove() to unfreeze it first. |
||
| 30 | 4 | TXT; |
|
| 31 | 4 | return new self($message); |
|
| 32 | } |
||
| 56 |