*/ public NodeList $variableDefinitions; /** @var NodeList */ public NodeList $directives; public SelectionSetNode $selectionSet; public function __construct(array $vars) { parent::__construct($vars); $this->directives ??= new NodeList([]); $this->variableDefinitions ??= new NodeList([]); } public function getSelectionSet(): SelectionSetNode { return $this->selectionSet; } }