code: private function formatResponse(SimpleXMLElement $response)
      {
          // We don't need to return data regarding the response to the user
          unset($response->Response);
  
          $result = $this->convertXmlObject($response);
  
          return new RateResponse($result);
      }
docs: Format the response.
  
  @param SimpleXMLElement $response
  
  @return RateResponse