SavedListItemCollection
extends ResourceCollection
in package
Table of Contents
Properties
- $collects : mixed
- $extraMeta : array<string|int, mixed>
Methods
- paginationInformation() : array<string|int, mixed>
- setExtraMeta() : $this
- toArray() : array<string|int, mixed>|Arrayable|JsonSerializable
- Transform the resource into a JSON array.
Properties
$collects
public
mixed
$collects
= \MetaFox\Saved\Http\Resources\v1\SavedList\SavedListItem::class
$extraMeta
protected
array<string|int, mixed>
$extraMeta
= []
Methods
paginationInformation()
public
paginationInformation(Request $request, array<string|int, mixed> $paginated, array<string|int, mixed> $default) : array<string|int, mixed>
Parameters
- $request : Request
- $paginated : array<string|int, mixed>
- $default : array<string|int, mixed>
Return values
array<string|int, mixed>setExtraMeta()
public
setExtraMeta(array<string|int, mixed> $attributes) : $this
Parameters
- $attributes : array<string|int, mixed>
Return values
$thistoArray()
Transform the resource into a JSON array.
public
toArray(Request $request) : array<string|int, mixed>|Arrayable|JsonSerializable
Parameters
- $request : Request