File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,12 @@ class JsonApiPaginator extends Pagination implements PaginatorInterface
5353 /**
5454 * @var boolean
5555 * Indicate, should paginator provide absolute urls or relative
56- */
56+ */
5757 public $ absoluteUrls = true ;
5858
5959 /**
6060 * @var int calculated current page number
61- */
61+ */
6262 private $ _page ;
6363
6464 public function init ()
@@ -68,32 +68,32 @@ public function init()
6868 $ this ->pageParam = 'number ' ;
6969 }
7070
71- public function getCurrentPage ()
71+ public function getCurrentPage (): int
7272 {
7373 return $ this ->getPage ();
7474 }
7575
76- public function getLastPage ()
76+ public function getLastPage (): int
7777 {
7878 return $ this ->getPageCount ();
7979 }
8080
81- public function getTotal ()
81+ public function getTotal (): int
8282 {
8383 return $ this ->totalCount ;
8484 }
8585
86- public function getCount ()
86+ public function getCount (): int
8787 {
8888 return $ this ->itemsCount ;
8989 }
9090
91- public function getPerPage ()
91+ public function getPerPage (): int
9292 {
9393 return $ this ->getPageSize ();
9494 }
9595
96- public function getUrl ($ page )
96+ public function getUrl ($ page ): string
9797 {
9898 return $ this ->createUrl ($ page );
9999 }
You can’t perform that action at this time.
0 commit comments