1: <?php namespace Knot\Dict; 2: 3: use ArrayIterator; 4: 5: trait IteratorAggregateTrait { 6: 7: protected $data = [ ]; 8: 9: 10: /** 11: * @return ArrayIterator 12: */ 13: public function getIterator() 14: { 15: return new ArrayIterator($this->data); 16: } 17: }