LazyRecordCollection implements IteratorAggregate, ArrayAccess, Countable
When first accessed, this class will initialize itself and find the relations for this record field.
This class acts as a "Value holder", as it only fetches the related records when needed.
not part of public API, as this needs to be streamlined and proven
Tags
Table of Contents
Interfaces
- IteratorAggregate
- ArrayAccess
- Countable
Methods
- __construct() : mixed
- __toString() : string
- count() : int
- getIterator() : Iterator
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
Methods
__construct()
public
__construct(mixed $fieldValue, Closure $initialization) : mixed
Parameters
- $fieldValue : mixed
- $initialization : Closure
__toString()
public
__toString() : string
Return values
stringcount()
public
count() : int
Return values
intgetIterator()
public
getIterator() : Iterator
Return values
IteratoroffsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed