public function integer($message = null)
    {
        $this->setRule(__FUNCTION__, function($val)
                       {
                           return !(filter_var($val, FILTER_VALIDATE_INT) === FALSE);
                       }, $message);
        return $this;
    }
public function integer($message = null)
    {
        $this->setRule(__FUNCTION__, function($val)
                       {
                           return !(filter_var($val, FILTER_VALIDATE_INT) === FALSE);
                       }, $message);
        return $this;
    }
public function integer ( $ message = null ) { $ this -> setRule ( __FUNCTION__ , function ( $ val ) { return ! ( filter_var ( $ val , FILTER_VALIDATE_INT ) === FALSE ) ; } , $ message ) ; return $ this ; }
Field must contain a valid integer value.

@param string $message
@return FormValidator
Field must contain a valid integer value .