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