trait PaginatedDataCollectable

Traits

Methods

string
getDataClass()

Get the data class stored by the collection.

getIterator()

Get an iterator for the data items.

array|null
partialsForItems()

Resolve the collection's active partials for items read from it.

bool
hasPartialsDefinition()

Determine whether this object has partial definitions.

getPartialsDefinition()

Get the current partial definitions.

iterable
itemsForIteration()

Get the underlying items without transforming them.

through(Closure $through)

No description

int
count()

Get the number of data items on the current page.

withoutWrapping()

Disable wrapping for the collection.

Details

string getDataClass()

Get the data class stored by the collection.

Return Value

string

Generator getIterator()

Get an iterator for the data items.

Return Value

Generator

protected array|null partialsForItems()

Resolve the collection's active partials for items read from it.

As in Spatie, an item read from the collection carries the collection's selections. Reads don't consume the collection's temporary selections; its next transformation does.

Return Value

array|null

abstract bool hasPartialsDefinition()

Determine whether this object has partial definitions.

Return Value

bool

abstract PartialsDefinition getPartialsDefinition()

Get the current partial definitions.

Return Value

PartialsDefinition

at line 55
protected iterable itemsForIteration()

Get the underlying items without transforming them.

Return Value

iterable

at line 23
PaginatedDataCollectable through(Closure $through)

No description

Parameters

Closure $through

Return Value

PaginatedDataCollectable

at line 36
int count()

Get the number of data items on the current page.

Return Value

int

at line 44
PaginatedDataCollectable withoutWrapping()

Disable wrapping for the collection.