Automattic\WooCommerce\Vendor\GraphQL\Language\AST
DirectiveNode{}└─ Node
No Hooks.
Usage
$DirectiveNode = new DirectiveNode(); // use class methods
Methods
- public __construct(array $vars)
DirectiveNode{} 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([]);
}
}