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