PHP Класс GraphQL\Type\Definition\UnionType

Наследование: extends Type, implements GraphQL\Type\Definition\AbstractType, implements OutputType, implements CompositeType
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$config array

Открытые методы

Метод Описание
__construct ( $config ) UnionType constructor.
getPossibleTypes ( ) : ObjectType[]
getTypes ( ) : ObjectType[]
isPossibleType ( Type $type ) : mixed
resolveType ( $objectValue, $context, ResolveInfo $info ) : callable | null Resolves concrete ObjectType for given object value

Описание методов

__construct() публичный метод

UnionType constructor.
public __construct ( $config )
$config

getPossibleTypes() публичный метод

public getPossibleTypes ( ) : ObjectType[]
Результат ObjectType[]

getTypes() публичный метод

public getTypes ( ) : ObjectType[]
Результат ObjectType[]

isPossibleType() публичный метод

public isPossibleType ( Type $type ) : mixed
$type Type
Результат mixed

resolveType() публичный метод

Resolves concrete ObjectType for given object value
public resolveType ( $objectValue, $context, ResolveInfo $info ) : callable | null
$objectValue
$context
$info ResolveInfo
Результат callable | null

Описание свойств

$config публичное свойство

public array $config
Результат array