Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | 4 | public function __construct(public readonly string $fullNamespace, public readonly array $cases) |
|
48 | { |
||
49 | 4 | [$this->namespace, $this->name] = splitNamespace($fullNamespace); |
|
50 | |||
51 | 4 | $this->path = namespaceToPath($fullNamespace); |
|
52 | |||
53 | 4 | $this->exists = enum_exists($fullNamespace); |
|
54 | |||
55 | 4 | $this->backingType = backingType(reset($cases)); |
|
56 | } |
||
58 |