Documentation

SchemaExtender
in package

Table of Contents

SCHEMA_EXTENSION  = 'SchemaExtension'
$astBuilder  : ASTDefinitionBuilder
$extendTypeCache  : array<string|int, Type>
$typeExtensionsMap  : array<string|int, mixed>
extend()  : Schema
checkExtensionNode()  : void
extendArgs()  : array<string|int, mixed>
extendDirective()  : Directive
extendEnumType()  : EnumType
extendFieldMap()  : array<string|int, mixed>
extendImplementedInterfaces()  : array<int, InterfaceType>
extendInputFieldMap()  : array<string|int, mixed>
extendInputObjectType()  : InputObjectType
extendInterfaceType()  : InterfaceType
extendMaybeNamedType()  : mixed|null
extendNamedType()  : mixed
extendObjectType()  : ObjectType
extendPossibleTypes()  : array<string|int, ObjectType>
extendScalarType()  : CustomScalarType
extendType()  : mixed
extendUnionType()  : UnionType
extendValueMap()  : array<string|int, mixed>
getExtensionASTNodes()  : array<string|int, TypeExtensionNode>|null
getMergedDirectives()  : array<string|int, Directive>
isSpecifiedScalarType()  : bool

Constants

SCHEMA_EXTENSION

public mixed SCHEMA_EXTENSION = 'SchemaExtension'

Properties

$typeExtensionsMap

protected static array<string|int, mixed> $typeExtensionsMap

Methods

extend()

public static extend(Schema $schema, DocumentNode $documentAST[, array<string, bool> $options = [] ][, callable|null $typeConfigDecorator = null ]) : Schema
Parameters
$schema : Schema
$documentAST : DocumentNode
$options : array<string, bool> = []
$typeConfigDecorator : callable|null = null
Return values
Schema

extendArgs()

protected static extendArgs(array<string|int, FieldArgument$args) : array<string|int, mixed>
Parameters
$args : array<string|int, FieldArgument>
Return values
array<string|int, mixed>

extendMaybeNamedType()

protected static extendMaybeNamedType([NamedType|null $type = null ]) : mixed|null
Parameters
$type : NamedType|null = null
Return values
mixed|null

extendNamedType()

protected static extendNamedType(Type $type) : mixed
Parameters
$type : Type
Return values
mixed

extendType()

protected static extendType(mixed $typeDef) : mixed
Parameters
$typeDef : mixed
Return values
mixed

extendValueMap()

protected static extendValueMap(EnumType $type) : array<string|int, mixed>
Parameters
$type : EnumType
Return values
array<string|int, mixed>

isSpecifiedScalarType()

protected static isSpecifiedScalarType(Type $type) : bool
Parameters
$type : Type
Return values
bool

Search results