| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 45.45% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class EmptyReference implements ReferenceInterface |
||
| 8 | { |
||
| 9 | 168 | public function __construct( |
|
| 10 | private string $role, |
||
| 11 | private mixed $value |
||
| 12 | ) { |
||
| 13 | } |
||
| 14 | |||
| 15 | public function getRole(): string |
||
| 16 | { |
||
| 17 | return $this->role; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function getScope(): array |
||
| 23 | } |
||
| 24 | |||
| 25 | 144 | public function hasValue(): bool |
|
| 26 | { |
||
| 27 | 144 | return true; |
|
| 28 | } |
||
| 29 | |||
| 30 | public function setValue(mixed $value): void |
||
| 33 | } |
||
| 34 | |||
| 35 | 144 | public function getValue(): mixed |
|
| 38 | } |
||
| 39 | } |
||
| 40 |