Automattic\WooCommerce\Vendor\GraphQL\Language\AST

FieldNode{}WC 1.0└─ SelectionNode, Node

No Hooks.

Usage

$FieldNode = new FieldNode();
// use class methods

Methods

  1. public __construct(array $vars)

FieldNode{} code WC 10.9.1

class FieldNode extends Node implements SelectionNode
{
    public string $kind = NodeKind::FIELD;

    public NameNode $name;

    public ?NameNode $alias = null;

    /** @var NodeList<ArgumentNode> */
    public NodeList $arguments;

    /** @var NodeList<DirectiveNode> */
    public NodeList $directives;

    public ?SelectionSetNode $selectionSet = null;

    public function __construct(array $vars)
    {
        parent::__construct($vars);
        $this->directives ??= new NodeList([]);
        $this->arguments ??= new NodeList([]);
    }
}