Automattic\WooCommerce\Vendor\GraphQL\Language\AST

FragmentSpreadNode{}WC 1.0└─ SelectionNode, Node

No Hooks.

Usage

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

Methods

  1. public __construct(array $vars)

FragmentSpreadNode{} code WC 10.9.1

class FragmentSpreadNode extends Node implements SelectionNode
{
    public string $kind = NodeKind::FRAGMENT_SPREAD;

    public NameNode $name;

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

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