src/Psr4Namespace.php
private function directories(): \Generator
    {
        foreach ($this->directories as $root) {
            if (is_dir($root)) {
                yield $root => new \RecursiveIteratorIterator(
                    new \RecursiveDirectoryIterator($root)
                );
            }
        }
    }
private function directories(): \Generator
    {
        foreach ($this->directories as $root) {
            if (is_dir($root)) {
                yield $root => new \RecursiveIteratorIterator(
                    new \RecursiveDirectoryIterator($root)
                );
            }
        }
    }
private function directories ( ) : \ Generator { foreach ( $ this -> directories as $ root ) { if ( is_dir ( $ root ) ) { yield $ root => new \ RecursiveIteratorIterator ( new \ RecursiveDirectoryIterator ( $ root ) ) ; } } }
Yield an iterator for each directory.

@return \Generator
Yield an iterator for each directory .