for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Digia\GraphQL\Language\Node;
trait ASTNodeTrait
{
/**
* @var ?NodeInterface
*/
protected $astNode;
* @return bool
public function hasAstNode(): bool
return null !== $this->astNode;
}
* @return NodeInterface|null
public function getAstNode(): ?NodeInterface
return $this->astNode;
* @param NodeInterface|null $astNode
* @return $this
protected function setAstNode(?NodeInterface $astNode)
$this->astNode = $astNode;
return $this;