PHP Class Bluz\Validator\Rule\Min

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

Protected Properties

Property Type Description
$minValue minimum value

Public Methods

Method 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 method

Setup validation rule
public __construct ( numeric $minValue, boolean $inclusive = false )
$minValue numeric
$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

$minValue protected property

minimum value
protected $minValue