WooCommerce Code Reference

KnownArgumentNamesOnDirectives extends ValidationRule
in package

Known argument names on directives.

A Automattic\WooCommerce\Vendor\GraphQL directive is only valid if all supplied arguments are defined by that field.

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.
unknownDirectiveArgMessage()  : string

Properties

Methods

unknownDirectiveArgMessage()

public static unknownDirectiveArgMessage(string $argName, string $directiveName, array<string|int, string> $suggestedArgs) : string
Parameters
$argName : string
$directiveName : string
$suggestedArgs : array<string|int, string>
Return values
string