PHP Class Neos\Flow\Validation\Validator\DisjunctionValidator

Inheritance: extends AbstractCompositeValidator
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Méthodes publiques

Méthode Description
validate ( mixed $value ) : Neos\Error\Messages\Result Checks if the given value is valid according to the validators of the disjunction.

Method Details

validate() public méthode

So only one validator has to be valid, to make the whole disjunction valid. Errors are only returned if all validators failed.
public validate ( mixed $value ) : Neos\Error\Messages\Result
$value mixed The value that should be validated
Résultat Neos\Error\Messages\Result