private function responseHandler($responseBody)
    {
        if ('json' === $this->outputFormat) {
            return $this->validateJsonResponse($responseBody);
        }

        return $this->validateXmlResponse($responseBody);
    }
private function responseHandler($responseBody)
    {
        if ('json' === $this->outputFormat) {
            return $this->validateJsonResponse($responseBody);
        }

        return $this->validateXmlResponse($responseBody);
    }
private function responseHandler ( $ responseBody ) { if ( 'json' === $ this -> outputFormat ) { return $ this -> validateJsonResponse ( $ responseBody ) ; } return $ this -> validateXmlResponse ( $ responseBody ) ; }
Handler for validate the response body.

@param string $responseBody Content body of the response

@return string
Handler for validate the response body .