| Conditions | 3 |
| Paths | 4 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 2 | public function __construct( |
|
| 14 | public readonly string $alias, |
||
| 15 | public readonly ?string $bindingScope = null, |
||
| 16 | public readonly ?array $callingScope = null, |
||
| 17 | ) { |
||
| 18 | 2 | $message = "Recursive proxy detected for `$alias`."; |
|
| 19 | 2 | $bindingScope === null or $message .= "\nBinding scope: `$bindingScope`."; |
|
| 20 | 2 | $callingScope === null or $message .= "\nCalling scope: `" . \implode('.', $callingScope) . '`.'; |
|
| 21 | 2 | parent::__construct($message); |
|
| 22 | } |
||
| 24 |