PHP Class GraphQL\Type\Definition\UnionType

Inheritance: extends Type, implements GraphQL\Type\Definition\AbstractType, implements OutputType, implements CompositeType
ファイルを表示 Open project: webonyx/graphql-php Class Usage Examples

Public Properties

Property Type Description
$config array

Public Methods

Method Description
__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

Method Details

__construct() public method

UnionType constructor.
public __construct ( $config )
$config

getPossibleTypes() public method

public getPossibleTypes ( ) : ObjectType[]
return ObjectType[]

getTypes() public method

public getTypes ( ) : ObjectType[]
return ObjectType[]

isPossibleType() public method

public isPossibleType ( Type $type ) : mixed
$type Type
return mixed

resolveType() public method

Resolves concrete ObjectType for given object value
public resolveType ( $objectValue, $context, ResolveInfo $info ) : callable | null
$objectValue
$context
$info ResolveInfo
return callable | null

Property Details

$config public_oe property

public array $config
return array