| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 26 | 48 | public static function parse(?array $config): ?Right | |
| 27 |     { | ||
| 28 | 48 |         if (null === $config) { | |
| 29 | 48 | return null; | |
| 30 | } | ||
| 31 | |||
| 32 | 46 | $right = new Right(); | |
| 33 | 46 | $right->attributes = ParseUtils::parseStringArray($config['attributes'] ?? null); | |
| 34 | 46 | $right->propertyPath = ParseUtils::parseString($config['propertyPath'] ?? null); | |
| 35 | |||
| 36 | 46 | return $right; | |
| 37 | } | ||
| 38 | } | ||
| 39 |