public function setBaseResponse(ResponseInterface $response)
    {
        if ($response instanceof GlobalEnvironmentInterface && $response->isStale()) {
            throw new \RuntimeException("Unable to set base response: Response is stale");
        }
        
        $this->baseResponse = $response;
    }
public function setBaseResponse(ResponseInterface $response)
    {
        if ($response instanceof GlobalEnvironmentInterface && $response->isStale()) {
            throw new \RuntimeException("Unable to set base response: Response is stale");
        }
        
        $this->baseResponse = $response;
    }
public function setBaseResponse ( ResponseInterface $ response ) { if ( $ response instanceof GlobalEnvironmentInterface && $ response -> isStale ( ) ) { throw new \ RuntimeException ( "Unable to set base response: Response is stale" ) ; } $ this -> baseResponse = $ response ; }
Set the base response

@param ResponseInterface $response
Set the base response