| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class NullTypeWriter extends AbstractWriter |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param NodeInterface|NonNullTypeNode $node |
||
| 14 | * @inheritdoc |
||
| 15 | */ |
||
| 16 | public function write(NodeInterface $node): string |
||
| 17 | { |
||
| 18 | return $this->printNode($node->getType()) . '!'; |
||
|
|
|||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @inheritdoc |
||
| 23 | */ |
||
| 24 | public function supportsWriter(NodeInterface $node): bool |
||
| 27 | } |
||
| 28 | } |
||
| 29 |