WooCommerce Code Reference

KnownDirectives extends ValidationRule
in package

Tags
phpstan-import-type

VisitorArray from Visitor

Table of Contents

$name  : string
getASTVisitor()  : array<string|int, 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.
misplacedDirectiveMessage()  : string
unknownDirectiveMessage()  : string
getDirectiveLocationForASTPath()  : string

Properties

Methods

getDirectiveLocationForASTPath()

protected getDirectiveLocationForASTPath(array<string|int, \Automattic\WooCommerce\Vendor\GraphQL\Language\AST\Node|\Automattic\WooCommerce\Vendor\GraphQL\Language\AST\NodeList<\Automattic\WooCommerce\Vendor\GraphQL\Language\AST\Node>> $ancestors) : string
Parameters
$ancestors : array<string|int, \Automattic\WooCommerce\Vendor\GraphQL\Language\AST\Node|\Automattic\WooCommerce\Vendor\GraphQL\Language\AST\NodeList<\Automattic\WooCommerce\Vendor\GraphQL\Language\AST\Node>>
Tags
throws
Exception
Return values
string