WooCommerce Code Reference

CustomValidationRule extends ValidationRule
in package

Tags
see

Node, VisitorOperation

phpstan-type

NodeVisitorFnResult VisitorOperation|mixed|null

phpstan-type

VisitorFnResult array<string, callable(Node): NodeVisitorFnResult>|array<string, array<string, callable(Node): NodeVisitorFnResult>>

phpstan-type

VisitorFn callable(ValidationContext): VisitorFnResult

Table of Contents

$name  : string
$visitorFn  : callable
__construct()  : mixed
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.

Properties

Methods