Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
14 | final class Variable implements HasType, Stringable |
||
15 | { |
||
16 | use WithTypeDeclaration; |
||
17 | |||
18 | 76 | public function __construct(private readonly string $name, TypeDeclaration $type) |
|
19 | { |
||
20 | 76 | $this->type = $type; |
|
21 | } |
||
22 | |||
23 | /** @return Name[] */ |
||
24 | 25 | public function references(): array |
|
27 | } |
||
28 | |||
29 | 21 | public function __toString(): string |
|
38 |