Automattic\WooCommerce\Vendor\GraphQL\Language\AST
DirectiveDefinitionNode{}└─ TypeSystemDefinitionNode, Node
Хуков нет.
Использование
$DirectiveDefinitionNode = new DirectiveDefinitionNode(); // use class methods
Методы
- public __construct(array $vars)
Код DirectiveDefinitionNode{} DirectiveDefinitionNode{} WC 11.0.1
class DirectiveDefinitionNode extends Node implements TypeSystemDefinitionNode
{
public string $kind = NodeKind::DIRECTIVE_DEFINITION;
public NameNode $name;
public ?StringValueNode $description = null;
/** @var NodeList<InputValueDefinitionNode> */
public NodeList $arguments;
public bool $repeatable;
/** @var NodeList<NameNode> */
public NodeList $locations;
public function __construct(array $vars)
{
parent::__construct($vars);
$this->arguments ??= new NodeList([]);
}
}