Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 701 Bytes

IteratorAggregateTrait.md

File metadata and controls

32 lines (21 loc) · 701 Bytes

IteratorAggregateTrait Documentation

A trait for \IteratorAggregate interface.

Example:

class Storage implements \IteratorAggregate
{
    private $storage = [];

    use \Greg\Support\Accessor\IteratorAggregateTrait;

    private function &getAccessor()
    {
        return $this->storage;
    }
}

Table of contents:

Methods:

Includes \IteratorAggregate methods.

Methods description is under construction.