public function getPageNumbers()
    {
        $pages = range(1, $this->getPagesCount());

        // And has an styling adapter
        if ($this->getPagesCount() > 10 && $this->hasAdapter()) {
            return $this->style->getPageNumbers($pages, $this->getCurrentPage());
        } else {
            return $pages;
        }
    }
public function getPageNumbers()
    {
        $pages = range(1, $this->getPagesCount());

        // And has an styling adapter
        if ($this->getPagesCount() > 10 && $this->hasAdapter()) {
            return $this->style->getPageNumbers($pages, $this->getCurrentPage());
        } else {
            return $pages;
        }
    }
public function getPageNumbers ( ) { $ pages = range ( 1 , $ this -> getPagesCount ( ) ) ; // And has an styling adapter if ( $ this -> getPagesCount ( ) > 10 && $ this -> hasAdapter ( ) ) { return $ this -> style -> getPageNumbers ( $ pages , $ this -> getCurrentPage ( ) ) ; } else { return $ pages ; } }
Returns total page numbers
Style-adapter aware method

@return array
Returns total page numbers Style - adapter aware method