Automattic\WooCommerce\Vendor\GraphQL\Language\AST

DirectiveNode{}WC 1.0└─ Node

No Hooks.

Usage

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

Methods

  1. public __construct(array $vars)

DirectiveNode{} code WC 10.9.1

class DirectiveNode extends Node
{
    public string $kind = NodeKind::DIRECTIVE;

    public NameNode $name;

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

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