PHP Class Jyxo\Input\Validator\InArray

Author: Jakub Tománek
Inheritance: extends AbstractValidator
Datei anzeigen Open project: jyxo/php

Public Methods

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

Method Details

__construct() public method

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

isValid() public method

Validates a value.
public isValid ( mixed $value ) : boolean
$value mixed Input value
return boolean