public function findClasses($directory)
    {
        $classes = [];
        foreach (Finder::create()->in($directory)->name('*.php') as $file) {
            $classes[] = $this->findClass($file->getRealPath());
        }
        return array_filter($classes);
    }
public function findClasses($directory)
    {
        $classes = [];
        foreach (Finder::create()->in($directory)->name('*.php') as $file) {
            $classes[] = $this->findClass($file->getRealPath());
        }
        return array_filter($classes);
    }
public function findClasses ( $ directory ) { $ classes = [ ] ; foreach ( Finder :: create ( ) -> in ( $ directory ) -> name ( '*.php' ) as $ file ) { $ classes [ ] = $ this -> findClass ( $ file -> getRealPath ( ) ) ; } return array_filter ( $ classes ) ; }
Find all the class and interface names in a given directory.

@param  string  $directory
@return array
Find all the class and interface names in a given directory .