| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function __construct( |
||
| 26 | public readonly string $service, |
||
| 27 | public readonly bool $isPublic = true, |
||
| 28 | public readonly ?string $aliasForArgument = null, |
||
| 29 | ) { |
||
| 30 | $this->aliasType = match (true) { |
||
|
|
|||
| 31 | !empty($this->aliasForArgument) => AliasType::WithArgumentName, |
||
| 32 | empty($this->aliasForArgument) => AliasType::WithoutArgumentName, |
||
| 33 | default => AliasType::LogicException, |
||
| 34 | }; |
||
| 45 |