Upgrade to rc5
This commit is contained in:
@@ -126,48 +126,30 @@ class Pagination
|
||||
/**
|
||||
* Getter for the current page
|
||||
*
|
||||
* @deprecated 3.3.0 Setter is no longer supported, use $pagination->clone()
|
||||
* @return int
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function page(int $page = null): int
|
||||
public function page(): int
|
||||
{
|
||||
if ($page !== null) {
|
||||
throw new Exception('$pagination->page() setter is no longer supported, use $pagination->clone()'); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
return $this->page;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for the total number of items
|
||||
*
|
||||
* @deprecated 3.3.0 Setter is no longer supported, use $pagination->clone()
|
||||
* @return int
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function total(int $total = null): int
|
||||
public function total(): int
|
||||
{
|
||||
if ($total !== null) {
|
||||
throw new Exception('$pagination->total() setter is no longer supported, use $pagination->clone()'); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
return $this->total;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for the number of items per page
|
||||
*
|
||||
* @deprecated 3.3.0 Setter is no longer supported, use $pagination->clone()
|
||||
* @return int
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function limit(int $limit = null): int
|
||||
public function limit(): int
|
||||
{
|
||||
if ($limit !== null) {
|
||||
throw new Exception('$pagination->limit() setter is no longer supported, use $pagination->clone()'); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
return $this->limit;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user