src/Psr4Namespace.php
private function paths(): \Generator
    {
        foreach ($this->directories() as $root => $directory) {
            foreach ($directory as $file) {
                if (preg_match(self::PATTERN, $file->getFilename()) === 1) {
                    yield $root => $file->getPathname();
                }
            }
        }
    }
private function paths(): \Generator
    {
        foreach ($this->directories() as $root => $directory) {
            foreach ($directory as $file) {
                if (preg_match(self::PATTERN, $file->getFilename()) === 1) {
                    yield $root => $file->getPathname();
                }
            }
        }
    }
private function paths ( ) : \ Generator { foreach ( $ this -> directories ( ) as $ root => $ directory ) { foreach ( $ directory as $ file ) { if ( preg_match ( self :: PATTERN , $ file -> getFilename ( ) ) === 1 ) { yield $ root => $ file -> getPathname ( ) ; } } } }
Yield paths of the files declaring classes for each directory.

@return \Generator
Yield paths of the files declaring classes for each directory .