code: public function getIterator() {
          if (!$this->content || $this->contentModified) {
              $this->generateContent();
          }
          return new \ArrayIterator($this->content);
      }
docs: Returns an ArrayIterator for traversing the contents of the Container.
  
  @return ArrayIterator