Paginator

Illuminate\Pagination\Paginator

class src/Illuminate/Pagination/Paginator.php

__construct

v11.0.0 以前から

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

hasMorePages

v11.0.0 以前から

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

hasMorePagesWhen

v11.0.0 以前から

hasMorePagesWhen($hasMore = true)
@param bool $hasMore
@return $this
  1. v11.0.0 追加
    変更後
    hasMorePagesWhen($hasMore = true) [@param bool $hasMore, @return $this]

jsonSerialize

v11.0.0 以前から

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

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]