PHP Class Neos\Flow\Validation\Validator\DisjunctionValidator

Inheritance: extends AbstractCompositeValidator
Show file Open project: neos/flow-development-collection Class Usage Examples

Public Methods

Method 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 method

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
return Neos\Error\Messages\Result