WooCommerce Code Reference

KnownTypeNames extends ValidationRule
in package

Known type names.

A Automattic\WooCommerce\Vendor\GraphQL document is only valid if referenced types (specifically variable definitions and fragment conditions) are defined by the type schema.

Tags
phpstan-import-type

VisitorArray from \Automattic\WooCommerce\Vendor\GraphQL\Language\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.
unknownTypeMessage()  : string

Properties

Methods

unknownTypeMessage()

public static unknownTypeMessage(string $type, array<string|int, string> $suggestedTypes) : string
Parameters
$type : string
$suggestedTypes : array<string|int, string>
Return values
string