src/MultiTierArchitecture/Library/Pagination/Limit.php
public function getTotalPages()
    {
        if ($this->totalItems > 0 && $this->itemsPerPage > 0) {
            if (($this->totalItems%$this->itemsPerPage) != 0) {
                return (int)($this->totalItems/$this->itemsPerPage) + 1;
            }
            else {
                return (int)($this->totalItems/$this->itemsPerPage);
            }
        }

        return 0;
    }
public function getTotalPages()
    {
        if ($this->totalItems > 0 && $this->itemsPerPage > 0) {
            if (($this->totalItems%$this->itemsPerPage) != 0) {
                return (int)($this->totalItems/$this->itemsPerPage) + 1;
            }
            else {
                return (int)($this->totalItems/$this->itemsPerPage);
            }
        }

        return 0;
    }
public function getTotalPages ( ) { if ( $ this -> totalItems > 0 && $ this -> itemsPerPage > 0 ) { if ( ( $ this -> totalItems % $ this -> itemsPerPage ) != 0 ) { return ( int ) ( $ this -> totalItems / $ this -> itemsPerPage ) + 1 ; } else { return ( int ) ( $ this -> totalItems / $ this -> itemsPerPage ) ; } } return 0 ; }
Get total number of pages

@return int
Get total number of pages