PayWithAmazon\ResponseParser::simpleXmlObject PHP Method

simpleXmlObject() private method

private simpleXmlObject ( )
    private function simpleXmlObject()
    {
        $response = $this->response;
        // Getting the HttpResponse Status code to the output as a string
        $status = strval($response['Status']);
        // Getting the Simple XML element object of the XML Response Body
        $response = simplexml_load_string((string) $response['ResponseBody']);
        // Adding the HttpResponse Status code to the output as a string
        $response->addChild('ResponseStatus', $status);
        return $response;
    }