Skip to content

Commit

Permalink
Implementing more response handler message checks
Browse files Browse the repository at this point in the history
  • Loading branch information
DerMika committed May 18, 2016
1 parent 9b34503 commit 099cdf1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
26 changes: 24 additions & 2 deletions src/Amadeus/Client/ResponseHandler/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/Amadeus/Client/Session/Handler/SendResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,11 @@ class SendResult
* @var \stdClass|array
*/
public $responseObject;

/**
* Which version of the message was called
*
* @var string
*/
public $messageVersion;
}

0 comments on commit 099cdf1

Please sign in to comment.