PriceListEntityResourceCollection
extends StdResourceCollection
in package
Table of Contents
- $asRoot : bool
- If this property is true the response will contain only the collection (and not the success and errors parameters)
- __construct() : mixed
- toArray() : array<string|int, mixed>|Collection
- Transform the resource collection into an array.
Properties
$asRoot
If this property is true the response will contain only the collection (and not the success and errors parameters)
protected
bool
$asRoot
Methods
__construct()
public
__construct( $resource[, bool $asRoot = false ]) : mixed
Parameters
Return values
mixed —toArray()
Transform the resource collection into an array.
public
toArray(Request $request) : array<string|int, mixed>|Collection
Parameters
- $request : Request