for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digia\GraphQL\Language\AST\Node;
trait SelectionSetTrait
{
/**
* @var SelectionSetNode|null
*/
protected $selectionSet;
* @return bool
public function hasSelectionSet(): bool
return null !== $this->selectionSet;
}
* @return SelectionSetNode|null
public function getSelectionSet(): ?SelectionSetNode
return $this->selectionSet;
* @return array|null
public function getSelectionSetAsArray(): ?array
return null !== $this->selectionSet ? $this->selectionSet->toArray() : null;
* @param SelectionSetNode|null $selectionSet
* @return $this
public function setSelectionSet(?SelectionSetNode $selectionSet)
$this->selectionSet = $selectionSet;
return $this;