Swift_Mime_Attachment::setDisposition PHP Method

setDisposition() public method

Set the Content-Disposition of this attachment.
public setDisposition ( string $disposition ) : Swift_Mime_Attachment
$disposition string
return Swift_Mime_Attachment
    public function setDisposition($disposition)
    {
        if (!$this->_setHeaderFieldModel('Content-Disposition', $disposition)) {
            $this->getHeaders()->addParameterizedHeader('Content-Disposition', $disposition);
        }
        return $this;
    }