Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
17 | final class Constant implements HasType, HasVisibility, Stringable |
||
18 | { |
||
19 | use WithTypeDeclaration; |
||
20 | use WithVisibility; |
||
21 | |||
22 | 27 | public function __construct(private readonly string $name, TypeDeclaration $type, Visibility $visibility) |
|
26 | } |
||
27 | |||
28 | 13 | public function __toString(): string |
|
35 | ); |
||
36 | } |
||
37 | |||
38 | /** @return Name[] */ |
||
39 | 1 | public function references(): array |
|
44 |