Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function write(NodeInterface $node): string |
||
16 | { |
||
17 | $typeCondition = $this->printNode($node->getTypeCondition()); |
||
18 | $directives = $this->printNodes($node->getDirectives()); |
||
19 | $selectionSet = $this->printNode($node->getSelectionSet()); |
||
20 | |||
21 | return implode(' ', ['...', wrap('on ', $typeCondition), implode(' ', $directives), $selectionSet]); |
||
22 | } |
||
32 |