Conditions | 4 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | protected function resolveValues($value, array $args, ResolveContext $context, ResolveInfo $info) { |
||
26 | if ($value instanceof \DOMElement) { |
||
27 | yield implode('', array_map(function ($child) { |
||
28 | if ($child instanceof \DOMText) { |
||
29 | return $child->nodeValue; |
||
30 | } |
||
31 | elseif ($child instanceof \DOMElement) { |
||
32 | return $child->ownerDocument->saveXML($child); |
||
33 | } |
||
34 | else { |
||
35 | return ''; |
||
36 | } |
||
37 | }, iterator_to_array($value->childNodes))); |
||
38 | } |
||
39 | } |
||
40 | |||
42 |