trait BaseDataCollectable

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.

Details

at line 24
string getDataClass()

Get the data class stored by the collection.

Return Value

string

at line 34
Generator getIterator()

Get an iterator for the data items.

Return Value

Generator

at line 55
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

at line 69
abstract bool hasPartialsDefinition()

Determine whether this object has partial definitions.

Return Value

bool

at line 74
abstract PartialsDefinition getPartialsDefinition()

Get the current partial definitions.

Return Value

PartialsDefinition

at line 81
abstract protected iterable itemsForIteration()

Get the underlying items without transforming them.

Return Value

iterable