LengthAwarePaginator

Illuminate\Pagination\LengthAwarePaginator

class src/Illuminate/Pagination/LengthAwarePaginator.php

__construct

v11.0.0 以前から

__construct($items, $total, $perPage, $currentPage = null, array $options = [])
@param Collection<TKey, TValue>|Arrayable<TKey, TValue>|iterable<TKey, TValue>|null $items
@param int $total
@param int $perPage
@param int|null $currentPage
@param array $options
  1. v11.0.0 追加
    変更後
    __construct($items, $total, $perPage, $currentPage = null, array $options = []) [@param mixed $items, @param int $total, @param int $perPage, @param int|null $currentPage, @param array $options, @return void]
  2. v11.32.0 シグネチャ変更
    変更前
    __construct($items, $total, $perPage, $currentPage = null, array $options = []) [@param mixed $items, @param int $total, @param int $perPage, @param int|null $currentPage, @param array $options, @return void]
    変更後
    __construct($items, $total, $perPage, $currentPage = null, array $options = []) [@param Collection<TKey, TValue>|Arrayable<TKey, TValue>|iterable<TKey, TValue>|null $items, @param int $total, @param int $perPage, @param int|null $currentPage, @param array $options, @return void]
  3. v12.4.0 シグネチャ変更
    変更前
    __construct($items, $total, $perPage, $currentPage = null, array $options = []) [@param Collection<TKey, TValue>|Arrayable<TKey, TValue>|iterable<TKey, TValue>|null $items, @param int $total, @param int $perPage, @param int|null $currentPage, @param array $options, @return void]
    変更後
    __construct($items, $total, $perPage, $currentPage = null, array $options = []) [@param Collection<TKey, TValue>|Arrayable<TKey, TValue>|iterable<TKey, TValue>|null $items, @param int $total, @param int $perPage, @param int|null $currentPage, @param array $options]

hasMorePages

v11.0.0 以前から

hasMorePages()
@return bool
  1. v11.0.0 追加
    変更後
    hasMorePages() [@return bool]

jsonSerialize

v11.0.0 以前から

jsonSerialize(): array
@return array
  1. v11.0.0 追加
    変更後
    jsonSerialize(): array [@return array]

lastPage

v11.0.0 以前から

lastPage()
@return int
  1. v11.0.0 追加
    変更後
    lastPage() [@return int]

linkCollection

v11.0.0 以前から

linkCollection()
@return \Illuminate\Support\Collection
  1. v11.0.0 追加
    変更後
    linkCollection() [@return \Illuminate\Support\Collection]

nextPageUrl

v11.0.0 以前から

nextPageUrl()
@return string|null
  1. v11.0.0 追加
    変更後
    nextPageUrl() [@return string|null]

render

v11.0.0 以前から

render($view = null, $data = [])
@param string|null $view
@param array $data
@return \Illuminate\Contracts\Support\Htmlable
  1. v11.0.0 追加
    変更後
    render($view = null, $data = []) [@param string|null $view, @param array $data, @return \Illuminate\Contracts\Support\Htmlable]

toArray

v11.0.0 以前から

toArray()
@return array
  1. v11.0.0 追加
    変更後
    toArray() [@return array]

toJson

v11.0.0 以前から

toJson($options = 0)
@param int $options
@return string
  1. v11.0.0 追加
    変更後
    toJson($options = 0) [@param int $options, @return string]

toPrettyJson

v12.26.0 から

toPrettyJson(int $options = 0)
@param int $options
@return string
  1. v12.26.0 追加
    変更後
    toPrettyJson() [@return string]
  2. v12.27.0 シグネチャ変更
    変更前
    toPrettyJson() [@return string]
    変更後
    toPrettyJson(int $options = 0) [@return string]
  3. v13.9.0 シグネチャ変更
    変更前
    toPrettyJson(int $options = 0) [@return string]
    変更後
    toPrettyJson(int $options = 0) [@param int $options, @return string]

total

v11.0.0 以前から

total()
@return int
  1. v11.0.0 追加
    変更後
    total() [@return int]