Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 1 | protected function extractDescription(ReflectionClassConstant|ReflectionClass $reflection): ?string |
|
16 | { |
||
17 | 1 | if ($reflection instanceof ReflectionClassConstant) { |
|
18 | 1 | $value = $reflection->getValue(); |
|
19 | 1 | if ($value instanceof LocalizedPhpEnumType) { |
|
20 | 1 | return $reflection->getValue()->getDescription(); |
|
21 | } |
||
22 | } |
||
23 | |||
24 | 1 | return parent::extractDescription($reflection); |
|
25 | } |
||
27 |