Documentation

AbstractLazyCollection extends AbstractLazyCollection implements CollectionInterface

AbstractYes

General JSON serializable collection.

Tags
template
template
extends
implements

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
par

ArrayCollection

phpstan-var

ArrayCollection<TKey,T>

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>

        
On this page

Search results