1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Reflection; |
4: | |
5: | use PHPStan\Type\Type; |
6: | |
7: | |
8: | |
9: | |
10: | |
11: | class EnumCaseReflection |
12: | { |
13: | |
14: | public function __construct(private ClassReflection $declaringEnum, private string $name, private ?Type $backingValueType) |
15: | { |
16: | } |
17: | |
18: | public function getDeclaringEnum(): ClassReflection |
19: | { |
20: | return $this->declaringEnum; |
21: | } |
22: | |
23: | public function getName(): string |
24: | { |
25: | return $this->name; |
26: | } |
27: | |
28: | public function getBackingValueType(): ?Type |
29: | { |
30: | return $this->backingValueType; |
31: | } |
32: | |
33: | } |
34: | |