FragmentsOnCompositeTypes
extends ValidationRule
in package
Table of Contents
- $name : string
- fragmentOnNonCompositeErrorMessage() : 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.
- inlineFragmentOnNonCompositeErrorMessage() : string
Properties
$name
protected
string
$name
Methods
fragmentOnNonCompositeErrorMessage()
public
static fragmentOnNonCompositeErrorMessage(string $fragName, string $type) : string
Parameters
- $fragName : string
- $type : string
Return values
string —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
Tags
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
Return values
array<string|int, mixed> —inlineFragmentOnNonCompositeErrorMessage()
public
static inlineFragmentOnNonCompositeErrorMessage(string $type) : string
Parameters
- $type : string
