CartItemCollection
class CartItemCollection extends ItemCollection
Traits
Properties
protected array | $hooks | from Hooks | |
ReactiveObject|ItemCollection|null | $parent | from ItemCollection | |
static protected | $type |
Methods
static ItemCollection
factory(array|null $items = [], $parent = null)
No description
from
ItemCollection
void
offsetSet(string|int $offset, mixed $value)
Set the item at a given offset.
from
ItemCollection
Details
in
Hooks at line 30
void
performHook(string $name)
in
Hooks at line 40
void
performHooks()
in
ItemCollection at line 21
__construct(array|null $items = [], $parent = null)
in
ItemCollection at line 44
static ItemCollection
factory(array|null $items = [], $parent = null)
in
ItemCollection at line 52
ReactiveObject|ItemCollection|null
getRootParent()
in
ItemCollection at line 70
void
offsetSet(string|int $offset, mixed $value)
Set the item at a given offset.
in
ItemCollection at line 82
void
offsetUnset(string|int $offset)
Unset the item at a given offset.
in
ItemCollection at line 93
array
toArray()
Get the collection of items as a plain array.
in
ItemCollection at line 108
Collection
map(callable $callback)
Run a map over each of the items.