public static function createFromBase(SymfonyUploadedFile $file, $test = false)
    {
        return $file instanceof static ? $file : new static(
            $file->getPathname(),
            $file->getClientOriginalName(),
            $file->getClientMimeType(),
            $file->getClientSize(),
            $file->getError(),
            $test
        );
    }
public static function createFromBase(SymfonyUploadedFile $file, $test = false)
    {
        return $file instanceof static ? $file : new static(
            $file->getPathname(),
            $file->getClientOriginalName(),
            $file->getClientMimeType(),
            $file->getClientSize(),
            $file->getError(),
            $test
        );
    }
public static function createFromBase ( SymfonyUploadedFile $ file , $ test = false ) { return $ file instanceof static ? $ file : new static ( $ file -> getPathname ( ) , $ file -> getClientOriginalName ( ) , $ file -> getClientMimeType ( ) , $ file -> getClientSize ( ) , $ file -> getError ( ) , $ test ) ; }
Create a new file instance from a base instance.

@param  \Symfony\Component\HttpFoundation\File\UploadedFile  $file
@param  bool $test
@return static
Create a new file instance from a base instance .