A trait for \IteratorAggregate
interface.
Example:
class Storage implements \IteratorAggregate
{
private $storage = [];
use \Greg\Support\Accessor\IteratorAggregateTrait;
private function &getAccessor()
{
return $this->storage;
}
}
Includes \IteratorAggregate
methods.
- getIteratorClass - Get iterator class;
- setIteratorClass - Set iterator class.
Methods description is under construction.