public function getIterator() : \Traversable
    {
        foreach ($this->objects as $hash => $object) {
            yield $object => $this->data[$hash];
        }
    }
public function getIterator() : \Traversable
    {
        foreach ($this->objects as $hash => $object) {
            yield $object => $this->data[$hash];
        }
    }
public function getIterator ( ) : \ Traversable { foreach ( $ this -> objects as $ hash => $ object ) { yield $ object => $ this -> data [ $ hash ] ; } }
Returns an iterator for this storage.

This method is part of the IteratorAggregate interface.

@return \Traversable
Returns an iterator for this storage .