Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public static function fromNative($value) |
||
26 | { |
||
27 | $res = new Callback(); |
||
28 | foreach ($value as $key => $itemValue) { |
||
29 | if (stripos($key, 'x-') === false) { |
||
30 | $res->paths[$key] = PathItem::fromNative($itemValue); |
||
31 | } else { |
||
32 | $res->specificationExtension = $res->specificationExtension->withField($key, $value); |
||
33 | } |
||
34 | } |
||
35 | return $res; |
||
36 | } |
||
47 |