PossibleTypeExtensions
extends ValidationRule
in package
Possible type extensions.
A type extension is only valid if the type is defined and has the same kind.
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.
- defKindToExtKind() : string
- extensionKindToTypeName() : string
- typeToExtKind() : string
Properties
$name
protected
string
$name
Methods
getName()
public
getName() : string
Return values
string —getSDLVisitor()
Returns structure suitable for @see \Automattic\WooCommerce\Vendor\GraphQL\Language\Visitor.
public
getSDLVisitor(SDLValidationContext $context) : array<string|int, mixed>
Parameters
- $context : SDLValidationContext
Return values
array<string|int, mixed> —getVisitor()
Returns structure suitable for @see \Automattic\WooCommerce\Vendor\GraphQL\Language\Visitor.
public
getVisitor(QueryValidationContext $context) : array<string|int, mixed>
Parameters
- $context : QueryValidationContext
Tags
Return values
array<string|int, mixed> —defKindToExtKind()
private
static defKindToExtKind(string $kind) : string
Parameters
- $kind : string
Tags
Return values
string —extensionKindToTypeName()
private
static extensionKindToTypeName(string $kind) : string
Parameters
- $kind : string
Tags
Return values
string —typeToExtKind()
private
static typeToExtKind(NamedType $type) : string
Parameters
- $type : NamedType
