Property | Type | Description | |
---|---|---|---|
$extraFieldsAllowed | |||
$instance | |||
$rules | |||
$validationRules | Youshido\GraphQL\Validator\ConfigValidator\Rules\ValidationRuleInterface[] |
Method | Description | |
---|---|---|
addRule ( $name, Youshido\GraphQL\Validator\ConfigValidator\Rules\ValidationRuleInterface $rule ) | ||
assertValidConfig ( |
||
getInstance ( ) : |
||
isExtraFieldsAllowed ( ) : boolean | ||
isValid ( ) | ||
isValidConfig ( |
||
setExtraFieldsAllowed ( boolean $extraFieldsAllowed ) : |
||
validate ( $data, $rules = [], $extraFieldsAllowed = null ) |
Method | Description | |
---|---|---|
getConfigFinalRules ( |
||
initializeRules ( ) |
Method | Description | |
---|---|---|
__construct ( ) |
public addRule ( $name, Youshido\GraphQL\Validator\ConfigValidator\Rules\ValidationRuleInterface $rule ) | ||
$rule | Youshido\GraphQL\Validator\ConfigValidator\Rules\ValidationRuleInterface |
public assertValidConfig ( |
||
$config |
protected getConfigFinalRules ( |
||
$config |
public static getInstance ( ) : |
||
return |
public isValidConfig ( |
||
$config |
public setExtraFieldsAllowed ( boolean $extraFieldsAllowed ) : |
||
$extraFieldsAllowed | boolean | |
return |
protected static ConfigValidator,Youshido\GraphQL\Validator\ConfigValidator $instance | ||
return |