public function getIterator()
    {
        $tagsById       = $this->container->findTaggedServiceIds($this->tag);
        $taggedServices = array();
        foreach ($tagsById as $id => $tagDefinitions) {
            /* @var $id string */
            /* @var $tagDefinitions array(array(string=>string)) */
            foreach ($tagDefinitions as $tagDefinition) {
                /* @var $tagDefinition array(string=>string) */
                $taggedServices[] = new TaggedService($id, $tagDefinition);
            }
        }
        return new \ArrayIterator($taggedServices);
    }
public function getIterator()
    {
        $tagsById       = $this->container->findTaggedServiceIds($this->tag);
        $taggedServices = array();
        foreach ($tagsById as $id => $tagDefinitions) {
            /* @var $id string */
            /* @var $tagDefinitions array(array(string=>string)) */
            foreach ($tagDefinitions as $tagDefinition) {
                /* @var $tagDefinition array(string=>string) */
                $taggedServices[] = new TaggedService($id, $tagDefinition);
            }
        }
        return new \ArrayIterator($taggedServices);
    }
public function getIterator ( ) { $ tagsById = $ this -> container -> findTaggedServiceIds ( $ this -> tag ) ; $ taggedServices = array ( ) ; foreach ( $ tagsById as $ id => $ tagDefinitions ) { /* @var $id string */ /* @var $tagDefinitions array(array(string=>string)) */ foreach ( $ tagDefinitions as $ tagDefinition ) { /* @var $tagDefinition array(string=>string) */ $ taggedServices [ ] = new TaggedService ( $ id , $ tagDefinition ) ; } } return new \ ArrayIterator ( $ taggedServices ) ; }
Returns the iterator.

@return \Traversable
@link http://php.net/manual/en/iteratoraggregate.getiterator.php
Returns the iterator .