PHP Interface Neos\Flow\Validation\Validator\ValidatorInterface

Afficher le fichier Open project: neos/flow-development-collection Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

validate() public méthode

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
Résultat Neos\Error\Messages\Result