public function setFile(string $name, FilePathInterface $filePath): void
    {
        $this->rawContent = '';
        $this->files[$name] = $filePath;
    }
public function setFile(string $name, FilePathInterface $filePath): void
    {
        $this->rawContent = '';
        $this->files[$name] = $filePath;
    }
public function setFile ( string $ name , FilePathInterface $ filePath ) : void { $ this -> rawContent = '' ; $ this -> files [ $ name ] = $ filePath ; }
Sets a file to upload.

@since 1.0.0

@param string            $name     The name.
@param FilePathInterface $filePath The file path.
Sets a file to upload .