| Total Complexity | 1 | 
| Total Lines | 42 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 14 | class GeneratingEnum | ||
| 15 | { | ||
| 16 | /** | ||
| 17 | * The namespace of the enum. | ||
| 18 | */ | ||
| 19 | public readonly string $namespace; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * The name of the enum. | ||
| 23 | */ | ||
| 24 | public readonly string $name; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * The absolute path of the enum. | ||
| 28 | */ | ||
| 29 | public readonly string $path; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * Whether the enum exists. | ||
| 33 | */ | ||
| 34 | public readonly bool $exists; | ||
| 35 | |||
| 36 | /** | ||
| 37 | * The backing type, if backed. | ||
| 38 | */ | ||
| 39 | public readonly ?string $backingType; | ||
| 40 | |||
| 41 | /** | ||
| 42 | * Instantiate the class. | ||
| 43 | * | ||
| 44 | * @param class-string<\UnitEnum> $fullNamespace | ||
|  | |||
| 45 | * @param array<string, string|int|null> $cases | ||
| 46 | */ | ||
| 47 | 4 | public function __construct(public readonly string $fullNamespace, public readonly array $cases) | |
| 58 |