@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | * @param string $messageName |
| 247 | 247 | * @param string $lastResponse |
| 248 | 248 | * @param array $messageOptions |
| 249 | - * @param mixed $result |
|
| 249 | + * @param SendResult $result |
|
| 250 | 250 | */ |
| 251 | 251 | abstract protected function handlePostMessage($messageName, $lastResponse, $messageOptions, $result); |
| 252 | 252 | |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | /** |
| 336 | 336 | * Get the version number active in the WSDL for the given message |
| 337 | 337 | * |
| 338 | - * @param $messageName |
|
| 338 | + * @param string $messageName |
|
| 339 | 339 | * @return float|string|null |
| 340 | 340 | */ |
| 341 | 341 | protected function getActiveVersionFor($messageName) |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | /** |
| 355 | 355 | * Get the WSDL ID for the given message |
| 356 | 356 | * |
| 357 | - * @param $messageName |
|
| 357 | + * @param string $messageName |
|
| 358 | 358 | * @return string|null |
| 359 | 359 | */ |
| 360 | 360 | protected function getWsdlIdFor($messageName) |
@@ -526,7 +526,7 @@ |
||
| 526 | 526 | /** |
| 527 | 527 | * Check is called message is not Security_Authenticate. |
| 528 | 528 | * |
| 529 | - * @param $messageName |
|
| 529 | + * @param string $messageName |
|
| 530 | 530 | * @return bool |
| 531 | 531 | */ |
| 532 | 532 | protected function isNotSecurityAuthenticateMessage($messageName) |
@@ -424,10 +424,10 @@ discard block |
||
| 424 | 424 | $charId = strtoupper(md5(uniqid(rand(), true))); |
| 425 | 425 | $hyphen = chr(45); // "-" |
| 426 | 426 | |
| 427 | - $uuid = substr($charId, 0, 8) . $hyphen |
|
| 428 | - . substr($charId, 8, 4) . $hyphen |
|
| 429 | - . substr($charId, 12, 4) . $hyphen |
|
| 430 | - . substr($charId, 16, 4) . $hyphen |
|
| 427 | + $uuid = substr($charId, 0, 8).$hyphen |
|
| 428 | + . substr($charId, 8, 4).$hyphen |
|
| 429 | + . substr($charId, 12, 4).$hyphen |
|
| 430 | + . substr($charId, 16, 4).$hyphen |
|
| 431 | 431 | . substr($charId, 20, 12); |
| 432 | 432 | |
| 433 | 433 | return $uuid; |
@@ -444,10 +444,10 @@ discard block |
||
| 444 | 444 | { |
| 445 | 445 | return $xml = '<oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> |
| 446 | 446 | <oas:UsernameToken xmlns:oas1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" oas1:Id="UsernameToken-1"> |
| 447 | - <oas:Username>' . $originator . '</oas:Username> |
|
| 448 | - <oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce . '</oas:Nonce> |
|
| 449 | - <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest . '</oas:Password> |
|
| 450 | - <oas1:Created>' . $creationTimeString . '</oas1:Created> |
|
| 447 | + <oas:Username>' . $originator.'</oas:Username> |
|
| 448 | + <oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce.'</oas:Nonce> |
|
| 449 | + <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest.'</oas:Password> |
|
| 450 | + <oas1:Created>' . $creationTimeString.'</oas1:Created> |
|
| 451 | 451 | </oas:UsernameToken> |
| 452 | 452 | </oas:Security>'; |
| 453 | 453 | } |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | { |
| 463 | 463 | return substr( |
| 464 | 464 | sha1( |
| 465 | - $nonceBase . $creationString, |
|
| 465 | + $nonceBase.$creationString, |
|
| 466 | 466 | true |
| 467 | 467 | ), |
| 468 | 468 | 0, |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | */ |
| 492 | 492 | protected function generatePasswordDigest($password, $creationString, $messageNonce) |
| 493 | 493 | { |
| 494 | - return base64_encode(sha1($messageNonce . $creationString . sha1($password, true), true)); |
|
| 494 | + return base64_encode(sha1($messageNonce.$creationString.sha1($password, true), true)); |
|
| 495 | 495 | } |
| 496 | 496 | |
| 497 | 497 | /** |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | { |
| 504 | 504 | $creationDateTime->setTimezone(new \DateTimeZone('UTC')); |
| 505 | 505 | |
| 506 | - return $creationDateTime->format("Y-m-d\TH:i:s:") . $micro . 'Z'; |
|
| 506 | + return $creationDateTime->format("Y-m-d\TH:i:s:").$micro.'Z'; |
|
| 507 | 507 | } |
| 508 | 508 | |
| 509 | 509 | /** |
@@ -182,7 +182,7 @@ |
||
| 182 | 182 | * Keys are option types (RequestOptions::OPTION_TYPE_*), |
| 183 | 183 | * values are option arguments. |
| 184 | 184 | * |
| 185 | - * @param $availabilityOptions |
|
| 185 | + * @param string[] $availabilityOptions |
|
| 186 | 186 | */ |
| 187 | 187 | protected function loadAvailabilityOptions($availabilityOptions) |
| 188 | 188 | { |
@@ -172,6 +172,9 @@ |
||
| 172 | 172 | $this->pricingTickInfo->pricingTicketing->priceType[] = $type; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | + /** |
|
| 176 | + * @param MPTicketingPriceScheme $ticketingPriceScheme |
|
| 177 | + */ |
|
| 175 | 178 | protected function loadTicketingPriceScheme($ticketingPriceScheme) |
| 176 | 179 | { |
| 177 | 180 | $priceScheme = new TicketingPriceScheme(); |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | /** |
| 117 | - * @param FareMasterPricerExSearch|FareMasterPricerCalendarOptions|TicketAtcShopperMpExSearchOptions $options |
|
| 117 | + * @param FareMasterPricerCalendarOptions $options |
|
| 118 | 118 | */ |
| 119 | 119 | protected function loadOptions($options) |
| 120 | 120 | { |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | use Amadeus\Client\RequestOptions\Fare\MPItinerary; |
| 27 | 27 | use Amadeus\Client\RequestOptions\FareMasterPricerCalendarOptions; |
| 28 | 28 | use Amadeus\Client\RequestOptions\FareMasterPricerExSearchOptions; |
| 29 | -use Amadeus\Client\RequestOptions\TicketAtcShopperMpTbSearchOptions; |
|
| 30 | 29 | use Amadeus\Client\Struct\Fare\MasterPricer; |
| 31 | 30 | |
| 32 | 31 | /** |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | /** |
| 134 | 134 | * FormOfPayment constructor. |
| 135 | 135 | * |
| 136 | - * @param string|FormOfPaymentOptions $options self::TYPE_* or object with FOP options |
|
| 136 | + * @param FormOfPaymentOptions $options self::TYPE_* or object with FOP options |
|
| 137 | 137 | */ |
| 138 | 138 | public function __construct($options) |
| 139 | 139 | { |
@@ -169,7 +169,7 @@ |
||
| 169 | 169 | * |
| 170 | 170 | * @param int $identifier |
| 171 | 171 | * @param string|null $type |
| 172 | - * @param string|int|null $infantIndicator |
|
| 172 | + * @param integer|null $infantIndicator |
|
| 173 | 173 | */ |
| 174 | 174 | public function __construct($identifier, $type = null, $infantIndicator = null) |
| 175 | 175 | { |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | |
| 197 | 197 | /** |
| 198 | 198 | * @param string $overrideCode |
| 199 | - * @param string|array|null $options |
|
| 199 | + * @param string $options |
|
| 200 | 200 | * @param PaxSegRef[] $references |
| 201 | 201 | * @return PricingOption[] |
| 202 | 202 | */ |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * Extracts the message content from the soap envelope (i.e. everything under the soap body) |
| 35 | 35 | * |
| 36 | 36 | * @param string $soapResponse |
| 37 | - * @return string|null |
|
| 37 | + * @return boolean|string |
|
| 38 | 38 | */ |
| 39 | 39 | public function extract($soapResponse) |
| 40 | 40 | { |
@@ -52,9 +52,9 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * Get substring between two strings |
| 54 | 54 | * |
| 55 | - * @param $string |
|
| 56 | - * @param $start |
|
| 57 | - * @param $end |
|
| 55 | + * @param string $string |
|
| 56 | + * @param string $start |
|
| 57 | + * @param string $end |
|
| 58 | 58 | * @return bool|string |
| 59 | 59 | */ |
| 60 | 60 | private function getStringBetween($string, $start, $end) |