private function getBundleClass(SplFileInfo $fileInfo)
    {
        $reflection = new ReflectionFile($fileInfo->getRealPath());
        $baseName   = $fileInfo->getBasename('.php');
        
        foreach ($reflection->getNamespaces() as $namespace) {
            return $namespace . '\\' . $baseName;
        }
        
        return null;
    }
private function getBundleClass(SplFileInfo $fileInfo)
    {
        $reflection = new ReflectionFile($fileInfo->getRealPath());
        $baseName   = $fileInfo->getBasename('.php');
        
        foreach ($reflection->getNamespaces() as $namespace) {
            return $namespace . '\\' . $baseName;
        }
        
        return null;
    }
private function getBundleClass ( SplFileInfo $ fileInfo ) { $ reflection = new ReflectionFile ( $ fileInfo -> getRealPath ( ) ) ; $ baseName = $ fileInfo -> getBasename ( '.php' ) ; foreach ( $ reflection -> getNamespaces ( ) as $ namespace ) { return $ namespace . '\\' . $ baseName ; } return null ; }
Returns FQCN for file

@param SplFileInfo $fileInfo

@return string|null
Returns FQCN for file