public static function createTemporary(string $data, string $clientFileName = null) : File
    {
        $tempFilePath = tempnam(sys_get_temp_dir(), 'dms');
        file_put_contents($tempFilePath, $data);

        return new self($tempFilePath, $clientFileName);
    }
public static function createTemporary(string $data, string $clientFileName = null) : File
    {
        $tempFilePath = tempnam(sys_get_temp_dir(), 'dms');
        file_put_contents($tempFilePath, $data);

        return new self($tempFilePath, $clientFileName);
    }
public static function createTemporary ( string $ data , string $ clientFileName = null ) : File { $ tempFilePath = tempnam ( sys_get_temp_dir ( ) , 'dms' ) ; file_put_contents ( $ tempFilePath , $ data ) ; return new self ( $ tempFilePath , $ clientFileName ) ; }
Create a temporary temporary file.

@param string      $data
@param string|null $clientFileName

@return File
Create a temporary temporary file .