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