for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digia\GraphQL\Language\Writer;
use Digia\GraphQL\Language\AST\Node\NodeInterface;
use Digia\GraphQL\Language\AST\Node\NullValueNode;
class NullValueWriter extends AbstractWriter
{
/**
* @param NodeInterface|NullValueNode $node
* @inheritdoc
*/
public function write(NodeInterface $node): string
return 'null';
}
public function supportsWriter(NodeInterface $node): bool
return $node instanceof NullValueNode;