PHP Class Bluz\Validator\Rule\Between

Inheritance: extends AbstractCompareRule
Show file Open project: bluzphp/framework Class Usage Examples

Protected Properties

Property Type Description
$maxValue maximum value
$minValue minimum value

Public Methods

Method Description
__construct ( mixed $min, mixed $max, boolean $inclusive = false ) Setup validation rule
getTemplate ( ) : string Get error template
validate ( numeric $input ) : boolean Check input data

Method Details

__construct() public method

Setup validation rule
public __construct ( mixed $min, mixed $max, boolean $inclusive = false )
$min mixed
$max mixed
$inclusive boolean

getTemplate() public method

Get error template
public getTemplate ( ) : string
return string

validate() public method

Check input data
public validate ( numeric $input ) : boolean
$input numeric
return boolean

Property Details

$maxValue protected property

maximum value
protected $maxValue

$minValue protected property

minimum value
protected $minValue