PHP 클래스 GraphQL\Validator\Rules\OverlappingFieldsCanBeMerged

파일 보기 프로젝트 열기: webonyx/graphql-php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$comparedSet GraphQL\Utils\PairSet

공개 메소드들

메소드 설명
__invoke ( ValidationContext $context )
fieldsConflictMessage ( $responseName, $reason )
reasonMessage ( $reason )
sameType ( $type1, $type2 )

비공개 메소드들

메소드 설명
collectFieldNodesAndDefs ( ValidationContext $context, mixed $parentType, SelectionSetNode $selectionSet, ArrayObject $visitedFragmentNames = null, ArrayObject $astAndDefs = null ) : mixed Given a selectionSet, adds all of the fields in that selection to the passed in map of fields, and returns it at the end.
doTypesConflict ( GraphQL\Type\Definition\OutputType $type1, GraphQL\Type\Definition\OutputType $type2 ) : boolean
findConflict ( $parentFieldsAreMutuallyExclusive, $responseName, array $pair1, array $pair2, ValidationContext $context ) : array | null
findConflicts ( $parentFieldsAreMutuallyExclusive, $fieldMap, ValidationContext $context )
getSubfieldMap ( FieldNode $ast1, $type1, FieldNode $ast2, $type2, ValidationContext $context )
sameArguments ( array $arguments1, array $arguments2 ) : boolean | string
sameValue ( $value1, $value2 )
subfieldConflicts ( array $conflicts, $responseName, FieldNode $ast1, FieldNode $ast2 )

메소드 상세

__invoke() 공개 메소드

public __invoke ( ValidationContext $context )
$context GraphQL\Validator\ValidationContext

fieldsConflictMessage() 정적인 공개 메소드

static public fieldsConflictMessage ( $responseName, $reason )

reasonMessage() 정적인 공개 메소드

static public reasonMessage ( $reason )

sameType() 공개 메소드

public sameType ( $type1, $type2 )

프로퍼티 상세

$comparedSet 공개적으로 프로퍼티

public PairSet,GraphQL\Utils $comparedSet
리턴 GraphQL\Utils\PairSet