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