diff --git a/src/Amadeus/Client/ResponseHandler/Base.php b/src/Amadeus/Client/ResponseHandler/Base.php index 2a8f60867..954b4aa63 100644 --- a/src/Amadeus/Client/ResponseHandler/Base.php +++ b/src/Amadeus/Client/ResponseHandler/Base.php @@ -65,10 +65,23 @@ public function analyzeResponse($sendResult, $messageName) } /** - * @param SendResult $response PNR_AddMultiElements result + * Analysing a Security_Authenticate + * + * @param SendResult $response Security_Authenticate result * @return Result */ - protected function analyzePnrAddMultiElementsResponse($response) + protected function analyzeSecurityAuthenticateResponse($response) + { + return new Result($response); //TODO + } + + /** + * Analysing a PNR_Reply + * + * @param SendResult $response PNR_Retrieve result + * @return Result + */ + protected function analyzePnrRetrieveResponse($response) { $analyzeResponse = new Result($response); @@ -127,6 +140,15 @@ protected function analyzePnrAddMultiElementsResponse($response) return $analyzeResponse; } + /** + * @param SendResult $response PNR_AddMultiElements result + * @return Result + */ + protected function analyzePnrAddMultiElementsResponse($response) + { + return $this->analyzePnrRetrieveResponse($response); + } + /** * @param SendResult $response Queue_List result * @return Result diff --git a/src/Amadeus/Client/Session/Handler/SendResult.php b/src/Amadeus/Client/Session/Handler/SendResult.php index 28be549d0..f90151de9 100644 --- a/src/Amadeus/Client/Session/Handler/SendResult.php +++ b/src/Amadeus/Client/Session/Handler/SendResult.php @@ -38,4 +38,11 @@ class SendResult * @var \stdClass|array */ public $responseObject; + + /** + * Which version of the message was called + * + * @var string + */ + public $messageVersion; }