PHP Class Jyxo\Input\Validator\InArray

Author: Jakub Tománek
Inheritance: extends AbstractValidator
Afficher le fichier Open project: jyxo/php

Méthodes publiques

Méthode Description
__construct ( array $allowed ) Constructor.
isValid ( mixed $value ) : boolean Validates a value.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $allowed )
$allowed array Array of allowed values

isValid() public méthode

Validates a value.
public isValid ( mixed $value ) : boolean
$value mixed Input value
Résultat boolean