Response/Type.php
public function setDisposition(string $dispositionType, $filename = null, $name = null)
    {
        if (!in_array($dispositionType, $this->dispositions)) {
            Checkers::notice('Unknown response type [' . $type . ']');
        } else {
            $this->disposition['type'] = $dispositionType;
        }
        if ($filename !== null) {
            $this->disposition['filename'] = (string) $filename;
        }
        if ($name !== null) {
            $this->disposition['name'] = (string) $name;
        }
        return $this;
    }
public function setDisposition(string $dispositionType, $filename = null, $name = null)
    {
        if (!in_array($dispositionType, $this->dispositions)) {
            Checkers::notice('Unknown response type [' . $type . ']');
        } else {
            $this->disposition['type'] = $dispositionType;
        }
        if ($filename !== null) {
            $this->disposition['filename'] = (string) $filename;
        }
        if ($name !== null) {
            $this->disposition['name'] = (string) $name;
        }
        return $this;
    }
public function setDisposition ( string $ dispositionType , $ filename = null , $ name = null ) { if ( ! in_array ( $ dispositionType , $ this -> dispositions ) ) { Checkers :: notice ( 'Unknown response type [' . $ type . ']' ) ; } else { $ this -> disposition [ 'type' ] = $ dispositionType ; } if ( $ filename !== null ) { $ this -> disposition [ 'filename' ] = ( string ) $ filename ; } if ( $ name !== null ) { $ this -> disposition [ 'name' ] = ( string ) $ name ; } return $ this ; }
Content-Disposition
@param string $dispositionType
@param string $filename
@param string $name
@return $this
Content - Disposition