/**
* Sets the document's download state
*
* @param boolean $download If true, this document will be downloaded; if false, this document will be displayed inline
*
* @return XmlDocument instance of $this to allow chaining
*
* @since 3.9.0
*/
public function setDownload($download = false)
{
$this->isDownload = $download;
return $this;
}