PHP Class GraphQL\Type\Definition\InterfaceType

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

Méthodes publiques

Свойство Type Description
$config array
$description mixed | null

Méthodes publiques

Méthode 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 méthode

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

getField() public méthode

public getField ( $name ) : FieldDefinition
$name
Résultat FieldDefinition

getFields() public méthode

public getFields ( ) : FieldDefinition[]
Résultat FieldDefinition[]

resolveType() public méthode

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

Property Details

$config public_oe property

public array $config
Résultat array

$description public_oe property

public mixed|null $description
Résultat mixed | null