| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class FragmentSpreadWriter extends AbstractWriter |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param NodeInterface|FragmentSpreadNode $node |
||
| 13 | * @inheritdoc |
||
| 14 | */ |
||
| 15 | public function write(NodeInterface $node): string |
||
| 16 | { |
||
| 17 | $name = $this->printNode($node->getName()); |
||
| 18 | $directives = $this->printNodes($node->getDirectives()); |
||
| 19 | |||
| 20 | return '...' . $name . wrap(' ', implode(' ', $directives)); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritdoc |
||
| 25 | */ |
||
| 26 | public function supportsWriter(NodeInterface $node): bool |
||
| 29 | } |
||
| 30 | } |
||
| 31 |