Automattic\WooCommerce\Vendor\GraphQL\Language\AST
DirectiveNode{}└─ Node
Хуков нет.
Использование
$DirectiveNode = new DirectiveNode(); // use class methods
Методы
- public __construct(array $vars)
Код DirectiveNode{} DirectiveNode{} WC 11.0.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([]);
}
}