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