BaseDataCollectable
trait BaseDataCollectable
Methods
Get the data class stored by the collection.
Get an iterator for the data items.
Resolve the collection's active partials for items read from it.
Determine whether this object has partial definitions.
Get the current partial definitions.
Get the underlying items without transforming them.
Details
at line 24
string
getDataClass()
Get the data class stored by the collection.
at line 34
Generator
getIterator()
Get an iterator for the data items.
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.
at line 69
abstract bool
hasPartialsDefinition()
Determine whether this object has partial definitions.
at line 74
abstract PartialsDefinition
getPartialsDefinition()
Get the current partial definitions.
at line 81
abstract protected iterable
itemsForIteration()
Get the underlying items without transforming them.