From 1b31b42483541d26d98218e9e3b385d23743371d Mon Sep 17 00:00:00 2001 From: Lukas Sarfert Date: Wed, 29 May 2024 18:26:54 +0200 Subject: [PATCH] update for php 8.3 --- src/pagination/JsonApiPaginator.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pagination/JsonApiPaginator.php b/src/pagination/JsonApiPaginator.php index 93111df..85b9a39 100644 --- a/src/pagination/JsonApiPaginator.php +++ b/src/pagination/JsonApiPaginator.php @@ -53,12 +53,12 @@ class JsonApiPaginator extends Pagination implements PaginatorInterface /** * @var boolean * Indicate, should paginator provide absolute urls or relative - */ + */ public $absoluteUrls = true; /** * @var int calculated current page number - */ + */ private $_page; public function init() @@ -68,32 +68,32 @@ public function init() $this->pageParam = 'number'; } - public function getCurrentPage() + public function getCurrentPage(): int { return $this->getPage(); } - public function getLastPage() + public function getLastPage(): int { return $this->getPageCount(); } - public function getTotal() + public function getTotal(): int { return $this->totalCount; } - public function getCount() + public function getCount(): int { return $this->itemsCount; } - public function getPerPage() + public function getPerPage(): int { return $this->getPageSize(); } - public function getUrl($page) + public function getUrl($page): string { return $this->createUrl($page); }