public function getLimit()
    {
        if ($this->max > 0) {
            return min($this->max, $this->limit);
        }

        return $this->limit;
    }
public function getLimit()
    {
        if ($this->max > 0) {
            return min($this->max, $this->limit);
        }

        return $this->limit;
    }
public function getLimit ( ) { if ( $ this -> max > 0 ) { return min ( $ this -> max , $ this -> limit ) ; } return $ this -> limit ; }
Gets the limit.

@return int
Gets the limit .