Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function write(NodeInterface $node): string |
||
16 | { |
||
17 | $alias = $this->printNode($node->getAlias()); |
||
|
|||
18 | $name = $this->printNode($node->getName()); |
||
19 | $arguments = $this->printNodes($node->getArguments()); |
||
20 | $directives = $this->printNodes($node->getDirectives()); |
||
21 | $selectionSet = $this->printNode($node->getSelectionSet()); |
||
22 | |||
23 | return implode(' ', [ |
||
24 | wrap('', $alias, ': ') . $name . wrap('(', implode(', ', $arguments), ')'), |
||
25 | implode(' ', $directives), |
||
26 | $selectionSet, |
||
27 | ]); |
||
38 |