class ReservationItemCollection extends ItemCollection

Traits

Properties

protected array $hooks from  Hooks
ReactiveObject|ItemCollection|null $parent from  ItemCollection
static protected $type

Methods

addHook(string $name, callable $callback = null)

No description

from  Hooks
void
performHook(string $name)

No description

from  Hooks
void
performHooks()

No description

from  Hooks
__construct(array|null $items = [], $parent = null)

No description

static ItemCollection
factory(array|null $items = [], $parent = null)

No description

ReactiveObject|ItemCollection|null
getRootParent()

No description

void
offsetSet(string|int $offset, mixed $value)

Set the item at a given offset.

void
offsetUnset(string|int $offset)

Unset the item at a given offset.

array
toArray()

Get the collection of items as a plain array.

Collection
map(callable $callback)

Run a map over each of the items.

array
jsonSerialize()

No description

Details

in Hooks at line 15
Hooks addHook(string $name, callable $callback = null)

Parameters

string $name
callable $callback

Return Value

Hooks

in Hooks at line 30
void performHook(string $name)

Parameters

string $name

Return Value

void

in Hooks at line 40
void performHooks()

Return Value

void

in ItemCollection at line 21
__construct(array|null $items = [], $parent = null)

Parameters

array|null $items = []
$parent

in ItemCollection at line 44
static ItemCollection factory(array|null $items = [], $parent = null)

Parameters

array|null $items = []
$parent

Return Value

ItemCollection

in ItemCollection at line 52
ReactiveObject|ItemCollection|null getRootParent()

Return Value

ReactiveObject|ItemCollection|null

in ItemCollection at line 70
void offsetSet(string|int $offset, mixed $value)

Set the item at a given offset.

Parameters

string|int $offset
mixed $value

Return Value

void

in ItemCollection at line 82
void offsetUnset(string|int $offset)

Unset the item at a given offset.

Parameters

string|int $offset

Return Value

void

in ItemCollection at line 93
array toArray()

Get the collection of items as a plain array.

Return Value

array

in ItemCollection at line 108
Collection map(callable $callback)

Run a map over each of the items.

Parameters

callable $callback

Return Value

Collection

in ItemCollection at line 116
array jsonSerialize()

Return Value

array