public function add(\SplFileInfo $file)
    {
        $content = new \Org_Heigl\FileFinder\Service\Tokenlist(file_get_contents($file->getPathname()));
        $classname = $content->getClassName();
        if (! $classname) {
            return;
        }

        $class = $content->getNamespace();
        $class[] = $classname;

        $key = str_replace('\\\\', '\\', '\\' . implode('\\', $class));

        $this->list[$key] = realpath($file->getPathname());
    }
public function add(\SplFileInfo $file)
    {
        $content = new \Org_Heigl\FileFinder\Service\Tokenlist(file_get_contents($file->getPathname()));
        $classname = $content->getClassName();
        if (! $classname) {
            return;
        }

        $class = $content->getNamespace();
        $class[] = $classname;

        $key = str_replace('\\\\', '\\', '\\' . implode('\\', $class));

        $this->list[$key] = realpath($file->getPathname());
    }
public function add ( \ SplFileInfo $ file ) { $ content = new \ Org_Heigl \ FileFinder \ Service \ Tokenlist ( file_get_contents ( $ file -> getPathname ( ) ) ) ; $ classname = $ content -> getClassName ( ) ; if ( ! $ classname ) { return ; } $ class = $ content -> getNamespace ( ) ; $ class [ ] = $ classname ; $ key = str_replace ( '\\\\' , '\\' , '\\' . implode ( '\\' , $ class ) ) ; $ this -> list [ $ key ] = realpath ( $ file -> getPathname ( ) ) ; }
Add an SPL-File-Info to the filelist

@param \SplFileInfo $file

@return void
Add an SPL - File - Info to the filelist