PHP Class GraphQL\Validator\Rules\VariablesInAllowedPosition

Show file Open project: webonyx/graphql-php Class Usage Examples

Public Properties

Property Type Description
$varDefMap

Public Methods

Method Description
__invoke ( ValidationContext $context )
badVarPosMessage ( $varName, $varType, $expectedType )

Private Methods

Method Description
effectiveType ( $varType, $varDef ) If a variable definition has a default value, it's effectively non-null.
varTypeAllowedForType ( $varType, $expectedType ) be more strict than the expected item type.

Method Details

__invoke() public method

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

badVarPosMessage() static public method

static public badVarPosMessage ( $varName, $varType, $expectedType )

Property Details

$varDefMap public property

public $varDefMap