Iterator/IteratorRegistry.php
public function get($name)
    {
        if (!array_key_exists($name, $this->registry)) {
            throw new \InvalidArgumentException(sprintf('An iterator for type "%s" is not registered', $name));
        }

        return $this->registry[$name];
    }
public function get($name)
    {
        if (!array_key_exists($name, $this->registry)) {
            throw new \InvalidArgumentException(sprintf('An iterator for type "%s" is not registered', $name));
        }

        return $this->registry[$name];
    }
{@inheritDoc}