public function setResponseContextClass(string $responseContextClass): RequestContext
    {
        if (!is_a($responseContextClass, ResponseContextAbstract::class, true)) {
            throw new RequestContextException(
                sprintf(
                    "Class %s must have %s as one of its parents",
                    $responseContextClass, //@codeCoverageIgnore
                    ResponseContextAbstract::class
                )
            );
        }

        $this->responseContextClass = $responseContextClass;

        return $this;
    }
public function setResponseContextClass(string $responseContextClass): RequestContext
    {
        if (!is_a($responseContextClass, ResponseContextAbstract::class, true)) {
            throw new RequestContextException(
                sprintf(
                    "Class %s must have %s as one of its parents",
                    $responseContextClass, //@codeCoverageIgnore
                    ResponseContextAbstract::class
                )
            );
        }

        $this->responseContextClass = $responseContextClass;

        return $this;
    }
public function setResponseContextClass ( string $ responseContextClass ) : RequestContext { if ( ! is_a ( $ responseContextClass , ResponseContextAbstract :: class , true ) ) { throw new RequestContextException ( sprintf ( "Class %s must have %s as one of its parents" , $ responseContextClass , //@codeCoverageIgnore ResponseContextAbstract :: class ) ) ; } $ this -> responseContextClass = $ responseContextClass ; return $ this ; }
Sets desired type of response context

@param string $responseContextClass

@throws RequestContextException

@return RequestContext
Sets desired type of response context