PHP Class Youshido\GraphQL\Validator\ConfigValidator\Rules\TypeValidationRule

Inheritance: implements Youshido\GraphQL\Validator\ConfigValidator\Rules\ValidationRuleInterface
Show file Open project: youshido/graphql Class Usage Examples

Public Methods

Method Description
__construct ( ConfigValidator $validator )
validate ( $data, $ruleInfo )

Private Methods

Method Description
getFieldConfigRules ( ) : array Exists for the performance
isArrayOfFields ( $data )
isArrayOfInputFields ( $data )
isArrayOfInterfaces ( $data )
isArrayOfObjectTypes ( $data )
isEnumValues ( $data )
isField ( $data, $name = null )
isInputField ( $data )

Method Details

__construct() public method

public __construct ( ConfigValidator $validator )
$validator Youshido\GraphQL\Validator\ConfigValidator\ConfigValidator

validate() public method

public validate ( $data, $ruleInfo )