PHP Class Youshido\GraphQL\Validator\ConfigValidator\ConfigValidator

Inheritance: implements Youshido\GraphQL\Validator\ConfigValidator\ConfigValidatorInterface, use trait Youshido\GraphQL\Validator\ErrorContainer\ErrorContainerTrait
Afficher le fichier Open project: youshido/graphql Class Usage Examples

Protected Properties

Свойство Type Description
$extraFieldsAllowed
$instance ConfigValidator
$rules
$validationRules Youshido\GraphQL\Validator\ConfigValidator\Rules\ValidationRuleInterface[]

Méthodes publiques

Méthode Description
addRule ( $name, Youshido\GraphQL\Validator\ConfigValidator\Rules\ValidationRuleInterface $rule )
assertValidConfig ( AbstractConfig $config )
getInstance ( ) : ConfigValidator
isExtraFieldsAllowed ( ) : boolean
isValid ( )
isValidConfig ( AbstractConfig $config )
setExtraFieldsAllowed ( boolean $extraFieldsAllowed ) : ConfigValidator
validate ( $data, $rules = [], $extraFieldsAllowed = null )

Méthodes protégées

Méthode Description
getConfigFinalRules ( AbstractConfig $config )
initializeRules ( )

Private Methods

Méthode Description
__construct ( )

Method Details

addRule() public méthode

public addRule ( $name, Youshido\GraphQL\Validator\ConfigValidator\Rules\ValidationRuleInterface $rule )
$rule Youshido\GraphQL\Validator\ConfigValidator\Rules\ValidationRuleInterface

assertValidConfig() public méthode

public assertValidConfig ( AbstractConfig $config )
$config Youshido\GraphQL\Config\AbstractConfig

getConfigFinalRules() protected méthode

protected getConfigFinalRules ( AbstractConfig $config )
$config Youshido\GraphQL\Config\AbstractConfig

getInstance() public static méthode

public static getInstance ( ) : ConfigValidator
Résultat ConfigValidator

initializeRules() protected méthode

protected initializeRules ( )

isExtraFieldsAllowed() public méthode

public isExtraFieldsAllowed ( ) : boolean
Résultat boolean

isValid() public méthode

public isValid ( )

isValidConfig() public méthode

public isValidConfig ( AbstractConfig $config )
$config Youshido\GraphQL\Config\AbstractConfig

setExtraFieldsAllowed() public méthode

public setExtraFieldsAllowed ( boolean $extraFieldsAllowed ) : ConfigValidator
$extraFieldsAllowed boolean
Résultat ConfigValidator

validate() public méthode

public validate ( $data, $rules = [], $extraFieldsAllowed = null )

Property Details

$extraFieldsAllowed protected_oe property

protected $extraFieldsAllowed

$instance protected_oe static_oe property

protected static ConfigValidator,Youshido\GraphQL\Validator\ConfigValidator $instance
Résultat ConfigValidator

$rules protected_oe property

protected $rules

$validationRules protected_oe property

protected ValidationRuleInterface[],Youshido\GraphQL\Validator\ConfigValidator\Rules $validationRules
Résultat Youshido\GraphQL\Validator\ConfigValidator\Rules\ValidationRuleInterface[]