SchemaExtender
in package
Tags
Table of Contents
- $astBuilder : ASTDefinitionBuilder
- $extendTypeCache : array<string|int, mixed>
- $typeExtensionsMap : array<string|int, mixed>
- extend() : Schema
- doExtend() : Schema
- extendArgs() : array<string, UnnamedArgumentConfig>
- extendDirective() : Directive
- extendEnumType() : EnumType
- extendEnumValueMap() : array<string, array<string, mixed>>
- extendFieldMap() : array<string, array<string, mixed>>
- extendImplementedInterfaces() : array<int, InterfaceType>
- extendInputFieldMap() : array<string, UnnamedInputObjectFieldConfig>
- extendInputObjectType() : InputObjectType
- extendInterfaceType() : InterfaceType
- extendMaybeNamedType() : (\Automattic\WooCommerce\Vendor\GraphQL\Utils\T&\Automattic\WooCommerce\Vendor\GraphQL\Type\Definition\NamedType)|null
- extendNamedType() : T|NamedType
- extendNamedTypeWithoutCache() : Type
- extendObjectType() : ObjectType
- extendScalarType() : CustomScalarType
- extendType() : T
- extendUnionPossibleTypes() : array<int, ObjectType>
- extendUnionType() : UnionType
- extensionASTNodes() : array<string|int, TypeExtensionNode>|null
- getMergedDirectives() : array<int, Directive>
- isSpecifiedScalarType() : bool
Properties
$astBuilder
protected
ASTDefinitionBuilder
$astBuilder
$extendTypeCache
protected
array<string|int, mixed>
$extendTypeCache
= []
$typeExtensionsMap
protected
array<string|int, mixed>
$typeExtensionsMap
= []
Methods
extend()
public
static extend(Schema $schema, DocumentNode $documentAST[, array<string, bool> $options = [] ][, callable|null $typeConfigDecorator = null ][, callable|null $fieldConfigDecorator = null ]) : Schema
Parameters
- $schema : Schema
- $documentAST : DocumentNode
- $options : array<string, bool> = []
- $typeConfigDecorator : callable|null = null
- $fieldConfigDecorator : callable|null = null
Tags
Return values
Schema —doExtend()
protected
doExtend(Schema $schema, DocumentNode $documentAST[, array<string, bool> $options = [] ][, callable|null $typeConfigDecorator = null ][, callable|null $fieldConfigDecorator = null ]) : Schema
Parameters
- $schema : Schema
- $documentAST : DocumentNode
- $options : array<string, bool> = []
- $typeConfigDecorator : callable|null = null
- $fieldConfigDecorator : callable|null = null
Tags
Return values
Schema —extendArgs()
protected
extendArgs(array<string|int, Argument> $args) : array<string, UnnamedArgumentConfig>
Parameters
- $args : array<string|int, Argument>
Return values
array<string, UnnamedArgumentConfig> —extendDirective()
protected
extendDirective(Directive $directive) : Directive
Parameters
- $directive : Directive
Return values
Directive —extendEnumType()
protected
extendEnumType(EnumType $type) : EnumType
Parameters
- $type : EnumType
Tags
Return values
EnumType —extendEnumValueMap()
protected
extendEnumValueMap(EnumType $type) : array<string, array<string, mixed>>
Parameters
- $type : EnumType
Tags
Return values
array<string, array<string, mixed>> —extendFieldMap()
protected
extendFieldMap(InterfaceType|ObjectType $type) : array<string, array<string, mixed>>
Parameters
- $type : InterfaceType|ObjectType
Tags
Return values
array<string, array<string, mixed>> —extendImplementedInterfaces()
protected
extendImplementedInterfaces(ObjectType|InterfaceType $type) : array<int, InterfaceType>
Parameters
- $type : ObjectType|InterfaceType
Tags
Return values
array<int, InterfaceType> —extendInputFieldMap()
protected
extendInputFieldMap(InputObjectType $type) : array<string, UnnamedInputObjectFieldConfig>
Parameters
- $type : InputObjectType
Tags
Return values
array<string, UnnamedInputObjectFieldConfig> —extendInputObjectType()
protected
extendInputObjectType(InputObjectType $type) : InputObjectType
Parameters
- $type : InputObjectType
Tags
Return values
InputObjectType —extendInterfaceType()
protected
extendInterfaceType(InterfaceType $type) : InterfaceType
Parameters
- $type : InterfaceType
Tags
Return values
InterfaceType —extendMaybeNamedType()
protected
extendMaybeNamedType([(\Automattic\WooCommerce\Vendor\GraphQL\Utils\T&\Automattic\WooCommerce\Vendor\GraphQL\Type\Definition\NamedType)|null $type = null ]) : (\Automattic\WooCommerce\Vendor\GraphQL\Utils\T&\Automattic\WooCommerce\Vendor\GraphQL\Type\Definition\NamedType)|null
Parameters
- $type : (\Automattic\WooCommerce\Vendor\GraphQL\Utils\T&\Automattic\WooCommerce\Vendor\GraphQL\Type\Definition\NamedType)|null = null
Tags
Return values
(\Automattic\WooCommerce\Vendor\GraphQL\Utils\T&\Automattic\WooCommerce\Vendor\GraphQL\Type\Definition\NamedType)|null —extendNamedType()
protected
extendNamedType(T|NamedType $type) : T|NamedType
Parameters
- $type : T|NamedType
Tags
Return values
T|NamedType —extendNamedTypeWithoutCache()
protected
extendNamedTypeWithoutCache(Type $type) : Type
Parameters
- $type : Type
Tags
Return values
Type —extendObjectType()
protected
extendObjectType(ObjectType $type) : ObjectType
Parameters
- $type : ObjectType
Tags
Return values
ObjectType —extendScalarType()
protected
extendScalarType(ScalarType $type) : CustomScalarType
Parameters
- $type : ScalarType
Tags
Return values
CustomScalarType —extendType()
protected
extendType(T $typeDef) : T
Parameters
- $typeDef : T
Tags
Return values
T —extendUnionPossibleTypes()
protected
extendUnionPossibleTypes(UnionType $type) : array<int, ObjectType>
Parameters
- $type : UnionType
Tags
Return values
array<int, ObjectType> —extendUnionType()
protected
extendUnionType(UnionType $type) : UnionType
Parameters
- $type : UnionType
Tags
Return values
UnionType —extensionASTNodes()
protected
extensionASTNodes(Type|NamedType $type) : array<string|int, TypeExtensionNode>|null
Parameters
Return values
array<string|int, TypeExtensionNode>|null —getMergedDirectives()
protected
getMergedDirectives(Schema $schema, array<string|int, DirectiveDefinitionNode> $directiveDefinitions) : array<int, Directive>
Parameters
- $schema : Schema
- $directiveDefinitions : array<string|int, DirectiveDefinitionNode>
Tags
Return values
array<int, Directive> —isSpecifiedScalarType()
protected
isSpecifiedScalarType(Type $type) : bool
Parameters
- $type : Type
