PHP Interface Neos\Flow\Validation\Validator\ValidatorInterface

Show file Open project: neos/flow-development-collection Interface Usage Examples

Public Methods

Method Description
getOptions ( ) : array Returns the options of this validator which can be specified in the constructor
validate ( mixed $value ) : Neos\Error\Messages\Result Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.

Method Details

getOptions() public method

Returns the options of this validator which can be specified in the constructor
public getOptions ( ) : array
return array

validate() public method

Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.
public validate ( mixed $value ) : Neos\Error\Messages\Result
$value mixed The value that should be validated
return Neos\Error\Messages\Result