public function getLastPage()
    {
        return (int) \max(self::MIN_PAGE, \ceil($this->getTotal() / $this->getLimit()));
    }
public function getLastPage()
    {
        return (int) \max(self::MIN_PAGE, \ceil($this->getTotal() / $this->getLimit()));
    }
public function getLastPage ( ) { return ( int ) \ max ( self :: MIN_PAGE , \ ceil ( $ this -> getTotal ( ) / $ this -> getLimit ( ) ) ) ; }
Returns last page.

@return int
Returns last page .