55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
name: PaginatedResourceResponse
|
|
class_comment: null
|
|
dependencies:
|
|
- name: Arr
|
|
type: class
|
|
source: Illuminate\Support\Arr
|
|
properties: []
|
|
methods:
|
|
- name: toResponse
|
|
visibility: public
|
|
parameters:
|
|
- name: request
|
|
comment: '# * Create an HTTP response that represents the object.
|
|
|
|
# *
|
|
|
|
# * @param \Illuminate\Http\Request $request
|
|
|
|
# * @return \Illuminate\Http\JsonResponse'
|
|
- name: paginationInformation
|
|
visibility: protected
|
|
parameters:
|
|
- name: request
|
|
comment: '# * Add the pagination information to the response.
|
|
|
|
# *
|
|
|
|
# * @param \Illuminate\Http\Request $request
|
|
|
|
# * @return array'
|
|
- name: paginationLinks
|
|
visibility: protected
|
|
parameters:
|
|
- name: paginated
|
|
comment: '# * Get the pagination links for the response.
|
|
|
|
# *
|
|
|
|
# * @param array $paginated
|
|
|
|
# * @return array'
|
|
- name: meta
|
|
visibility: protected
|
|
parameters:
|
|
- name: paginated
|
|
comment: '# * Gather the meta data for the response.
|
|
|
|
# *
|
|
|
|
# * @param array $paginated
|
|
|
|
# * @return array'
|
|
traits:
|
|
- Illuminate\Support\Arr
|
|
interfaces: []
|