PHP Класс GraphQL\Validator\ValidationContext

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( Schema $schema, DocumentNode $ast, TypeInfo $typeInfo ) ValidationContext constructor.
getArgument ( )
getDirective ( )
getDocument ( ) : DocumentNode
getErrors ( ) : Error[]
getFieldDef ( ) : FieldDefinition
getFragment ( $name ) : FragmentDefinitionNode | null
getFragmentSpreads ( GraphQL\Language\AST\HasSelectionSet $node ) : FragmentSpreadNode[]
getInputType ( ) : GraphQL\Type\Definition\InputType
getParentType ( ) : GraphQL\Type\Definition\CompositeType
getRecursiveVariableUsages ( OperationDefinitionNode $operation ) : array
getRecursivelyReferencedFragments ( OperationDefinitionNode $operation ) : FragmentDefinitionNode[]
getSchema ( ) : Schema
getType ( ) : Type Returns OutputType
getVariableUsages ( GraphQL\Language\AST\HasSelectionSet $node ) : array
reportError ( Error $error )

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

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

ValidationContext constructor.
public __construct ( Schema $schema, DocumentNode $ast, TypeInfo $typeInfo )
$schema GraphQL\Schema
$ast GraphQL\Language\AST\DocumentNode
$typeInfo GraphQL\Utils\TypeInfo

getArgument() публичный Метод

public getArgument ( )

getDirective() публичный Метод

public getDirective ( )

getDocument() публичный Метод

public getDocument ( ) : DocumentNode
Результат GraphQL\Language\AST\DocumentNode

getErrors() публичный Метод

public getErrors ( ) : Error[]
Результат GraphQL\Error\Error[]

getFieldDef() публичный Метод

public getFieldDef ( ) : FieldDefinition
Результат GraphQL\Type\Definition\FieldDefinition

getFragment() публичный Метод

public getFragment ( $name ) : FragmentDefinitionNode | null
$name
Результат GraphQL\Language\AST\FragmentDefinitionNode | null

getFragmentSpreads() публичный Метод

public getFragmentSpreads ( GraphQL\Language\AST\HasSelectionSet $node ) : FragmentSpreadNode[]
$node GraphQL\Language\AST\HasSelectionSet
Результат GraphQL\Language\AST\FragmentSpreadNode[]

getInputType() публичный Метод

public getInputType ( ) : GraphQL\Type\Definition\InputType
Результат GraphQL\Type\Definition\InputType

getParentType() публичный Метод

public getParentType ( ) : GraphQL\Type\Definition\CompositeType
Результат GraphQL\Type\Definition\CompositeType

getRecursiveVariableUsages() публичный Метод

public getRecursiveVariableUsages ( OperationDefinitionNode $operation ) : array
$operation GraphQL\Language\AST\OperationDefinitionNode
Результат array List of ['node' => VariableNode, 'type' => ?InputObjectType]

getRecursivelyReferencedFragments() публичный Метод

public getRecursivelyReferencedFragments ( OperationDefinitionNode $operation ) : FragmentDefinitionNode[]
$operation GraphQL\Language\AST\OperationDefinitionNode
Результат GraphQL\Language\AST\FragmentDefinitionNode[]

getSchema() публичный Метод

public getSchema ( ) : Schema
Результат GraphQL\Schema

getType() публичный Метод

Returns OutputType
public getType ( ) : Type
Результат GraphQL\Type\Definition\Type

getVariableUsages() публичный Метод

public getVariableUsages ( GraphQL\Language\AST\HasSelectionSet $node ) : array
$node GraphQL\Language\AST\HasSelectionSet
Результат array List of ['node' => VariableNode, 'type' => ?InputObjectType]

reportError() публичный Метод

public reportError ( Error $error )
$error GraphQL\Error\Error