public function totalPages()
    {
        $total = $this->totalObjects();
        $perPage = $this->objectsPerPage();

        return (int) ceil($total / $perPage);
    }
public function totalPages()
    {
        $total = $this->totalObjects();
        $perPage = $this->objectsPerPage();

        return (int) ceil($total / $perPage);
    }
public function totalPages ( ) { $ total = $ this -> totalObjects ( ) ; $ perPage = $ this -> objectsPerPage ( ) ; return ( int ) ceil ( $ total / $ perPage ) ; }
Total number of pages for this call
@return int Total page
Total number of pages for this call