code: public function getPages($startPage, $endPage, $urlStub) {
          $pages = [];
          //TODO yield this array - after upgrading to php 5.5
          for($x=$startPage ; $x<=$endPage ; $x++) {
              $pages[] = $urlStub.$x;
          }
  
          return $pages;
      }
docs: Generates an array of the URIs for a set of pages.
  @param $startPage
  @param $endPage
  @param $urlStub
  @return array