Resultset
extends Simple
in package
Table of Contents
- map() : array<string|int, mixed>
- Apply a callback to each member of the resultset
- splat() : array<string|int, mixed>
- Flattens a result set You can also pass a key/value in the form of `key:value` ``` $content->versions->splat('uuid'); $assignment->users->splat('uuid:email'); ```
- toCollection() : Collection
- Return this resultset as a CEO Collection
Methods
map()
Apply a callback to each member of the resultset
public
map(callable $callback) : array<string|int, mixed>
Parameters
- $callback : callable
Return values
array<string|int, mixed> —splat()
Flattens a result set You can also pass a key/value in the form of `key:value` ``` $content->versions->splat('uuid'); $assignment->users->splat('uuid:email'); ```
public
splat(mixed $val) : array<string|int, mixed>
Parameters
- $val : mixed
Return values
array<string|int, mixed> —toCollection()
Return this resultset as a CEO Collection
public
toCollection() : Collection