platform/api/laravel/Http/Resources/Json/PaginatedResourceResponse.yaml

56 lines
1.1 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
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: []