WooCommerce Code Reference

ValuesOfCorrectType extends ValidationRule
in package

Value literals of correct type.

A Automattic\WooCommerce\Vendor\GraphQL document is only valid if all value literals are of the type expected at their position.

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.
isValidValueNode()  : void

Properties

Methods

isValidValueNode()

protected isValidValueNode(QueryValidationContext $context, VariableNode|NullValueNode|IntValueNode|FloatValueNode|StringValueNode|BooleanValueNode|EnumValueNode|ListValueNode|ObjectValueNode $node) : void
Parameters
$context : QueryValidationContext
$node : VariableNode|NullValueNode|IntValueNode|FloatValueNode|StringValueNode|BooleanValueNode|EnumValueNode|ListValueNode|ObjectValueNode
Tags
throws
JsonException
Return values
void