@@ -65,7 +65,7 @@ public function __construct($elementsPerPage, $totalElements, $pageParam)
6565 *
6666 * @return int
6767 */
68- public function getCurrentPage ()
68+ public function getCurrentPage (): int
6969 {
7070 return $ this ->currentPage ;
7171 }
@@ -75,7 +75,7 @@ public function getCurrentPage()
7575 *
7676 * @return int
7777 */
78- public function getLastPage ()
78+ public function getLastPage (): int
7979 {
8080 return $ this ->totalPages ;
8181 }
@@ -85,7 +85,7 @@ public function getLastPage()
8585 *
8686 * @return int
8787 */
88- public function getTotal ()
88+ public function getTotal (): int
8989 {
9090 return $ this ->totalElements ;
9191 }
@@ -95,7 +95,7 @@ public function getTotal()
9595 *
9696 * @return int
9797 */
98- public function getCount ()
98+ public function getCount (): int
9999 {
100100 return $ this ->count ;
101101 }
@@ -115,7 +115,7 @@ public function setCount($count)
115115 *
116116 * @return int
117117 */
118- public function getPerPage ()
118+ public function getPerPage (): int
119119 {
120120 return $ this ->elementsPerPage ;
121121 }
@@ -126,7 +126,7 @@ public function getPerPage()
126126 * @param int $page
127127 * @return string
128128 */
129- public function getUrl ($ page )
129+ public function getUrl ($ page ): string
130130 {
131131 $ request = Craft::$ app ->getRequest ();
132132
0 commit comments