public function find()
    {
        $files = [];

        foreach ($this->getDirectoryIterator() as $file) {
            if ($this->getExtension($file) !== 'php') continue;

            $files[] = $file->getPathname();
        }

        return $files;
    }
public function find()
    {
        $files = [];

        foreach ($this->getDirectoryIterator() as $file) {
            if ($this->getExtension($file) !== 'php') continue;

            $files[] = $file->getPathname();
        }

        return $files;
    }
public function find ( ) { $ files = [ ] ; foreach ( $ this -> getDirectoryIterator ( ) as $ file ) { if ( $ this -> getExtension ( $ file ) !== 'php' ) continue ; $ files [ ] = $ file -> getPathname ( ) ; } return $ files ; }
Fetch an array of factory files.

@return array
Fetch an array of factory files .