protected function buildLengthAware($numberOfPages)
    {
        $pages = $this->newPages();

        if ($this->totalCount < 1) {
            return $pages;
        }

        return $this->addPages($pages, 1, $numberOfPages);

    }
protected function buildLengthAware($numberOfPages)
    {
        $pages = $this->newPages();

        if ($this->totalCount < 1) {
            return $pages;
        }

        return $this->addPages($pages, 1, $numberOfPages);

    }
protected function buildLengthAware ( $ numberOfPages ) { $ pages = $ this -> newPages ( ) ; if ( $ this -> totalCount < 1 ) { return $ pages ; } return $ this -> addPages ( $ pages , 1 , $ numberOfPages ) ; }
Buid pages if total count is known.

@param int $numberOfPages

@return Pages
Buid pages if total count is known .