Skip to content

Commit

Permalink
update for php 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lukassarfert committed May 29, 2024
1 parent b9bd0fd commit 1b31b42
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pagination/JsonApiPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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);
}
Expand Down

0 comments on commit 1b31b42

Please sign in to comment.