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;
    }