for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digia\GraphQL\Language\NodeBuilder;
use Digia\GraphQL\Language\Node\NodeInterface;
use Digia\GraphQL\Language\Node\NodeKindEnum;
use Digia\GraphQL\Language\Node\SelectionSetNode;
class SelectionSetNodeBuilder extends AbstractNodeBuilder
{
/**
* @inheritdoc
*/
public function build(array $ast): NodeInterface
return new SelectionSetNode([
'selections' => $this->buildMany($ast, 'selections'),
'location' => $this->createLocation($ast),
]);
}
public function supportsKind(string $kind): bool
return NodeKindEnum::SELECTION_SET === $kind;