public function generate()
    {
        // generates an unique name for the new temp
        $tempName = Uuid::uuid4()->toString();
        $tempFile = $this->getDirectory().DIRECTORY_SEPARATOR.$tempName;

        $this->files[] = $tempFile;

        return $tempFile;
    }
public function generate()
    {
        // generates an unique name for the new temp
        $tempName = Uuid::uuid4()->toString();
        $tempFile = $this->getDirectory().DIRECTORY_SEPARATOR.$tempName;

        $this->files[] = $tempFile;

        return $tempFile;
    }
public function generate ( ) { // generates an unique name for the new temp $ tempName = Uuid :: uuid4 ( ) -> toString ( ) ; $ tempFile = $ this -> getDirectory ( ) . DIRECTORY_SEPARATOR . $ tempName ; $ this -> files [ ] = $ tempFile ; return $ tempFile ; }
Generates a new temporary file.

This may also handle the real creation of the file and returns the File object.
But for now it's only used by archive generation (which uses \ZipArchive for this and only needs the path).

@return string - the path to the temp file
Generates a new temporary file .