Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
17 | protected function getNamespacedValue(string $nsKey, array $subject) |
||
18 | { |
||
19 | $exp = explode('.', $nsKey); |
||
20 | |||
21 | $value = null; |
||
22 | $cSubject = $subject; |
||
23 | foreach($exp as $name){ |
||
24 | if(array_key_exists($name, $cSubject)){ |
||
25 | $value = $cSubject[$name]; |
||
26 | $cSubject = $cSubject[$name]; |
||
27 | } |
||
28 | } |
||
29 | |||
30 | return $value; |
||
31 | } |
||
32 | } |