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