for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digia\GraphQL\Language\AST\Node\Builder;
use Digia\GraphQL\Language\AST\Node\Contract\NodeInterface;
use Digia\GraphQL\Language\AST\Node\SelectionSetNode;
use Digia\GraphQL\Language\AST\NodeKindEnum;
class SelectionSetBuilder extends AbstractBuilder
{
/**
* @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;