PHP Interface Youshido\GraphQL\Validator\ResolveValidator\ResolveValidatorInterface

显示文件 Open project: youshido/graphql Interface Usage Examples

Public Methods

Method Description
assertTypeImplementsInterface ( AbstractType $type, AbstractInterfaceType $interface )
assertTypeInUnionTypes ( AbstractType $type, AbstractUnionType $unionType )
assertValidArguments ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $query, Request $request )
assertValidResolvedValueForField ( Youshido\GraphQL\Field\FieldInterface $field, $resolvedValue )
assetTypeHasField ( AbstractType $objectType, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast )

Method Details

assertTypeImplementsInterface() public method

public assertTypeImplementsInterface ( AbstractType $type, AbstractInterfaceType $interface )
$type Youshido\GraphQL\Type\AbstractType
$interface Youshido\GraphQL\Type\InterfaceType\AbstractInterfaceType

assertTypeInUnionTypes() public method

public assertTypeInUnionTypes ( AbstractType $type, AbstractUnionType $unionType )
$type Youshido\GraphQL\Type\AbstractType
$unionType Youshido\GraphQL\Type\Union\AbstractUnionType

assertValidArguments() public method

public assertValidArguments ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $query, Request $request )
$field Youshido\GraphQL\Field\FieldInterface
$query Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface
$request Youshido\GraphQL\Execution\Request

assertValidResolvedValueForField() public method

public assertValidResolvedValueForField ( Youshido\GraphQL\Field\FieldInterface $field, $resolvedValue )
$field Youshido\GraphQL\Field\FieldInterface

assetTypeHasField() public method

public assetTypeHasField ( AbstractType $objectType, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast )
$objectType Youshido\GraphQL\Type\AbstractType
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface