| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 2.1481 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 18 | 23 | private function getProperty(string $name): ?Property  | 
            |
| 19 |     { | 
            ||
| 20 | 23 | $cases = Property::cases();  | 
            |
| 21 | 23 | $key = \array_search($name, \array_column($cases, 'value'));  | 
            |
| 22 | |||
| 23 | 23 | $property = Property::tryFrom($cases[$key]->value);  | 
            |
| 24 | |||
| 25 | 23 |         if (! $property instanceof Property) { | 
            |
| 26 | throw new RuntimeException(  | 
            ||
| 27 |                 \sprintf('Property % can not be found', $name) | 
            ||
| 28 | );  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | 23 | return $property;  | 
            |
| 32 | }  | 
            ||
| 59 |