PHP Class Bluz\Validator\Rule\Min

Inheritance: extends AbstractCompareRule
Afficher le fichier Open project: bluzphp/framework Class Usage Examples

Protected Properties

Свойство Type Description
$minValue minimum value

Méthodes publiques

Méthode Description
__construct ( numeric $minValue, boolean $inclusive = false ) Setup validation rule
getTemplate ( ) : string Get error template
validate ( numeric $input ) : boolean Check input data

Method Details

__construct() public méthode

Setup validation rule
public __construct ( numeric $minValue, boolean $inclusive = false )
$minValue numeric
$inclusive boolean

getTemplate() public méthode

Get error template
public getTemplate ( ) : string
Résultat string

validate() public méthode

Check input data
public validate ( numeric $input ) : boolean
$input numeric
Résultat boolean

Property Details

$minValue protected_oe property

minimum value
protected $minValue