public function setContentDispositionType($content_disposition_type)
    {
        if (!in_array($content_disposition_type, $this->disposition_types, true)) {
            $supported = implode(',', $this->disposition_types);
            throw new Exception\InvalidArgumentException(__METHOD__ . " Content disposition type '$content_disposition_type' not in supported types: $supported");
        }

        $this->params['content-disposition-type'] = $content_disposition_type;

        return $this;
    }
public function setContentDispositionType($content_disposition_type)
    {
        if (!in_array($content_disposition_type, $this->disposition_types, true)) {
            $supported = implode(',', $this->disposition_types);
            throw new Exception\InvalidArgumentException(__METHOD__ . " Content disposition type '$content_disposition_type' not in supported types: $supported");
        }

        $this->params['content-disposition-type'] = $content_disposition_type;

        return $this;
    }
public function setContentDispositionType ( $ content_disposition_type ) { if ( ! in_array ( $ content_disposition_type , $ this -> disposition_types , true ) ) { $ supported = implode ( ',' , $ this -> disposition_types ) ; throw new Exception \ InvalidArgumentException ( __METHOD__ . " Content disposition type '$content_disposition_type' not in supported types: $supported" ) ; } $ this -> params [ 'content-disposition-type' ] = $ content_disposition_type ; return $ this ; }
Set the preferred content disposition type 'attachement' or 'inline'.

@throws Exception\InvalidArgumentException

@param string $content_disposition_type

@return SimpleHeaders
Set the preferred content disposition type attachement or inline .