File tree 1 file changed +8
-8
lines changed
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
53
53
/**
54
54
* @var boolean
55
55
* Indicate, should paginator provide absolute urls or relative
56
- */
56
+ */
57
57
public $ absoluteUrls = true ;
58
58
59
59
/**
60
60
* @var int calculated current page number
61
- */
61
+ */
62
62
private $ _page ;
63
63
64
64
public function init ()
@@ -68,32 +68,32 @@ public function init()
68
68
$ this ->pageParam = 'number ' ;
69
69
}
70
70
71
- public function getCurrentPage ()
71
+ public function getCurrentPage (): int
72
72
{
73
73
return $ this ->getPage ();
74
74
}
75
75
76
- public function getLastPage ()
76
+ public function getLastPage (): int
77
77
{
78
78
return $ this ->getPageCount ();
79
79
}
80
80
81
- public function getTotal ()
81
+ public function getTotal (): int
82
82
{
83
83
return $ this ->totalCount ;
84
84
}
85
85
86
- public function getCount ()
86
+ public function getCount (): int
87
87
{
88
88
return $ this ->itemsCount ;
89
89
}
90
90
91
- public function getPerPage ()
91
+ public function getPerPage (): int
92
92
{
93
93
return $ this ->getPageSize ();
94
94
}
95
95
96
- public function getUrl ($ page )
96
+ public function getUrl ($ page ): string
97
97
{
98
98
return $ this ->createUrl ($ page );
99
99
}
You can’t perform that action at this time.
0 commit comments