Response/Type.php
public function setType(string $type):self
    {
        if (!isset($this->types[$type])) {
            Checkers::notice('Unknown response type [' . $type . ']');
        } else {
            $this->type = $type;
        }
        return $this;
    }
public function setType(string $type):self
    {
        if (!isset($this->types[$type])) {
            Checkers::notice('Unknown response type [' . $type . ']');
        } else {
            $this->type = $type;
        }
        return $this;
    }
public function setType ( string $ type ) : self { if ( ! isset ( $ this -> types [ $ type ] ) ) { Checkers :: notice ( 'Unknown response type [' . $ type . ']' ) ; } else { $ this -> type = $ type ; } return $ this ; }
Content-Type
@param string $type
@return $this
Content - Type