layfi-earn/vendor/illuminate/contracts/Pagination/LengthAwarePaginator.php
2025-01-27 20:49:47 +08:00

37 lines
664 B
PHP

<?php
namespace Illuminate\Contracts\Pagination;
/**
* @template TKey of array-key
*
* @template-covariant TValue
*
* @extends Paginator<TKey, TValue>
*/
interface LengthAwarePaginator extends Paginator
{
/**
* Create a range of pagination URLs.
*
* @param int $start
* @param int $end
* @return array
*/
public function getUrlRange($start, $end);
/**
* Determine the total number of items in the data store.
*
* @return int
*/
public function total();
/**
* Get the page number of the last available page.
*
* @return int
*/
public function lastPage();
}