public function setResponse(string $type, $response)
    {
        $this->response = new Response($type, $response);
        $this->initialized['response'] = true;

        return $this;
    }
public function setResponse(string $type, $response)
    {
        $this->response = new Response($type, $response);
        $this->initialized['response'] = true;

        return $this;
    }
public function setResponse ( string $ type , $ response ) { $ this -> response = new Response ( $ type , $ response ) ; $ this -> initialized [ 'response' ] = true ; return $ this ; }
Set a response.

@param string $type
@param any    $response the "$response" is framework interface or array.

@author Seven Du <shiweidu@outlook.com>
Set a response .