PHP Class GraphQL\Type\Definition\InterfaceType

Inheritance: extends Type, implements GraphQL\Type\Definition\AbstractType, implements OutputType, implements CompositeType
Show file Open project: webonyx/graphql-php Class Usage Examples

Public Properties

Property Type Description
$config array
$description mixed | null

Public Methods

Method Description
__construct ( array $config ) InterfaceType constructor.
getField ( $name ) : FieldDefinition
getFields ( ) : FieldDefinition[]
resolveType ( $objectValue, $context, ResolveInfo $info ) : callable | null Resolves concrete ObjectType for given object value

Method Details

__construct() public method

InterfaceType constructor.
public __construct ( array $config )
$config array

getField() public method

public getField ( $name ) : FieldDefinition
$name
return FieldDefinition

getFields() public method

public getFields ( ) : FieldDefinition[]
return FieldDefinition[]

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 property

public array $config
return array

$description public property

public mixed|null $description
return mixed | null