public function setRequest(string $type, $request)
    {
        $this->request = new Request($type, $request);
        $this->initialized['request'] = true;

        return $this;
    }
public function setRequest(string $type, $request)
    {
        $this->request = new Request($type, $request);
        $this->initialized['request'] = true;

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

@param string $type
@param any    $request set a request, if native PHP set the "$request" null.
the "$request" MUST be implemented.

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