WooCommerce Code Reference

SchemaExtender
in package

Tags
phpstan-import-type

TypeConfigDecorator from ASTDefinitionBuilder

phpstan-import-type

FieldConfigDecorator from ASTDefinitionBuilder

phpstan-import-type

UnnamedArgumentConfig from Argument

phpstan-import-type

UnnamedInputObjectFieldConfig from InputObjectField

see
SchemaExtenderTest

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

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
phpstan-param

TypeConfigDecorator|null $typeConfigDecorator

phpstan-param

FieldConfigDecorator|null $fieldConfigDecorator

throws
Exception
throws
InvariantViolation
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
phpstan-param

TypeConfigDecorator|null $typeConfigDecorator

phpstan-param

FieldConfigDecorator|null $fieldConfigDecorator

throws
Exception
throws
ReflectionException
throws
Error
throws
InvariantViolation
Return values
Schema

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
template

T of Type

throws
ReflectionException
throws
InvariantViolation
Return values
(\Automattic\WooCommerce\Vendor\GraphQL\Utils\T&\Automattic\WooCommerce\Vendor\GraphQL\Type\Definition\NamedType)|null