WooCommerce Code Reference

NoUndefinedVariables extends ValidationRule
in package

A Automattic\WooCommerce\Vendor\GraphQL operation is only valid if all variables encountered, both directly and via fragment spreads, are defined by that operation.

Table of Contents

$name  : string
getName()  : string
getSDLVisitor()  : array<string|int, mixed>
Returns structure suitable for @see \Automattic\WooCommerce\Vendor\GraphQL\Language\Visitor.
getVisitor()  : array<string|int, mixed>
Returns structure suitable for @see \Automattic\WooCommerce\Vendor\GraphQL\Language\Visitor.
undefinedVarMessage()  : string

Properties

Methods