LengthAwarePaginator.php 664 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Illuminate\Contracts\Pagination;
  3. /**
  4. * @template TKey of array-key
  5. *
  6. * @template-covariant TValue
  7. *
  8. * @extends Paginator<TKey, TValue>
  9. */
  10. interface LengthAwarePaginator extends Paginator
  11. {
  12. /**
  13. * Create a range of pagination URLs.
  14. *
  15. * @param int $start
  16. * @param int $end
  17. * @return array
  18. */
  19. public function getUrlRange($start, $end);
  20. /**
  21. * Determine the total number of items in the data store.
  22. *
  23. * @return int
  24. */
  25. public function total();
  26. /**
  27. * Get the page number of the last available page.
  28. *
  29. * @return int
  30. */
  31. public function lastPage();
  32. }