Bluz\Validator\Rule\AbstractCompareRule::less PHP Method

less() protected method

Check $what less $than or not
protected less ( mixed $what, mixed $than ) : boolean
$what mixed
$than mixed
return boolean
    protected function less($what, $than) : bool
    {
        if ($this->inclusive) {
            return $what <= $than;
        } else {
            return $what < $than;
        }
    }
AbstractCompareRule