src/BoomCMS/FileInfo/FileInfo.php
public function create(File $file): FileInfoDriver
    {
        $driver = $this->getDriver($file->getMimeType());
        $className = __NAMESPACE__.'\Drivers\\'.$driver;

        return new $className($file);
    }
public function create(File $file): FileInfoDriver
    {
        $driver = $this->getDriver($file->getMimeType());
        $className = __NAMESPACE__.'\Drivers\\'.$driver;

        return new $className($file);
    }
public function create ( File $ file ) : FileInfoDriver { $ driver = $ this -> getDriver ( $ file -> getMimeType ( ) ) ; $ className = __NAMESPACE__ . '\Drivers\\' . $ driver ; return new $ className ( $ file ) ; }
Factory method for retrieving a FileInfo object.

@param File $file

@return FileInfoDriver
Factory method for retrieving a FileInfo object .