private function createNamespaceIterator(array $namespaces): Iterator
    {
        $files = new AppendIterator();

        foreach ($namespaces as $classmap) {
            $files->append(
                $this->createClassmapIterator($classmap)
            );
        }

        return $files;
    }
private function createNamespaceIterator(array $namespaces): Iterator
    {
        $files = new AppendIterator();

        foreach ($namespaces as $classmap) {
            $files->append(
                $this->createClassmapIterator($classmap)
            );
        }

        return $files;
    }
private function createNamespaceIterator ( array $ namespaces ) : Iterator { $ files = new AppendIterator ( ) ; foreach ( $ namespaces as $ classmap ) { $ files -> append ( $ this -> createClassmapIterator ( $ classmap ) ) ; } return $ files ; }
Create an iterator for the given namespaces.

@param array $namespaces

@return Iterator
Create an iterator for the given namespaces .