AbstractLazyCollection
extends AbstractLazyCollection
in package
implements
CollectionInterface
AbstractYes
General JSON serializable collection.
Tags
Table of Contents
Interfaces
- CollectionInterface
- Collection Interface.
Properties
- $collection : mixed
Methods
- chunk() : array<string|int, mixed>
- Split collection into chunks.
- jsonSerialize() : array<string|int, mixed>
- reverse() : CollectionInterface
- Reverse the order of the items.
- select() : CollectionInterface
- Select items from collection.
- shuffle() : CollectionInterface
- Shuffle items.
- unselect() : CollectionInterface
- Un-select items from collection.
Properties
$collection
protected
mixed
$collection
Tags
Methods
chunk()
Split collection into chunks.
public
chunk(mixed $size) : array<string|int, mixed>
Parameters
- $size : mixed
-
Size of each chunk.
Return values
array<string|int, mixed>jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Attributes
- #[ReturnTypeWillChange]
Return values
array<string|int, mixed>reverse()
Reverse the order of the items.
public
reverse() : CollectionInterface
Tags
Return values
CollectionInterfaceselect()
Select items from collection.
public
select(array<string|int, mixed> $keys) : CollectionInterface
Parameters
- $keys : array<string|int, mixed>
Tags
Return values
CollectionInterfaceshuffle()
Shuffle items.
public
shuffle() : CollectionInterface
Tags
Return values
CollectionInterfaceunselect()
Un-select items from collection.
public
unselect(array<string|int, mixed> $keys) : CollectionInterface
Parameters
- $keys : array<string|int, mixed>