protected function updateNumPages()
    {
        $this->pages = ($this->limit == 0) ? 0 : (int) ceil($this->total / $this->limit);
        return $this;
    }
protected function updateNumPages()
    {
        $this->pages = ($this->limit == 0) ? 0 : (int) ceil($this->total / $this->limit);
        return $this;
    }
protected function updateNumPages ( ) { $ this -> pages = ( $ this -> limit == 0 ) ? 0 : ( int ) ceil ( $ this -> total / $ this -> limit ) ; return $ this ; }
Updates the current number of pages
@return $this
Updates the current number of pages