@@ -35,9 +35,7 @@ |
||
35 | 35 | use Amadeus\Client\RequestOptions\OfferConfirmCarOptions; |
36 | 36 | use Amadeus\Client\RequestOptions\OfferConfirmHotelOptions; |
37 | 37 | use Amadeus\Client\RequestOptions\OfferVerifyOptions; |
38 | -use Amadeus\Client\RequestOptions\Pnr\Element\ReceivedFrom; |
|
39 | 38 | use Amadeus\Client\RequestOptions\PnrAddMultiElementsBase; |
40 | -use Amadeus\Client\RequestOptions\PnrAddMultiElementsOptions; |
|
41 | 39 | use Amadeus\Client\RequestOptions\PnrCancelOptions; |
42 | 40 | use Amadeus\Client\RequestOptions\PnrCreatePnrOptions; |
43 | 41 | use Amadeus\Client\RequestOptions\PnrRetrieveAndDisplayOptions; |
@@ -95,12 +95,12 @@ discard block |
||
95 | 95 | { |
96 | 96 | $this->checkMessageIsInWsdl($messageName); |
97 | 97 | |
98 | - $methodName = 'create' . str_replace("_", "", $messageName); |
|
98 | + $methodName = 'create'.str_replace("_", "", $messageName); |
|
99 | 99 | |
100 | 100 | if (method_exists($this, $methodName)) { |
101 | 101 | return $this->$methodName($params); |
102 | 102 | } else { |
103 | - throw new \RuntimeException('Message ' . $methodName . ' is not implemented in ' . __CLASS__); |
|
103 | + throw new \RuntimeException('Message '.$methodName.' is not implemented in '.__CLASS__); |
|
104 | 104 | } |
105 | 105 | } |
106 | 106 | |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | protected function checkMessageIsInWsdl($messageName) |
428 | 428 | { |
429 | 429 | if (!array_key_exists($messageName, $this->messagesAndVersions)) { |
430 | - throw new InvalidMessageException('Message "' . $messageName . '" is not in WDSL'); |
|
430 | + throw new InvalidMessageException('Message "'.$messageName.'" is not in WDSL'); |
|
431 | 431 | } |
432 | 432 | } |
433 | 433 |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | /** |
185 | 185 | * @param PnrDisplayHistoryOptions $params |
186 | - * @return Struct\Pnr\Cancel |
|
186 | + * @return Struct\Pnr\DisplayHistory |
|
187 | 187 | */ |
188 | 188 | protected function createPNRDisplayHistory(PnrDisplayHistoryOptions $params) |
189 | 189 | { |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | /** |
470 | 470 | * Get the version number active in the WSDL for the given message |
471 | 471 | * |
472 | - * @param $messageName |
|
472 | + * @param string $messageName |
|
473 | 473 | * @return float|string |
474 | 474 | */ |
475 | 475 | protected function getActiveVersionFor($messageName) |
@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * @param string $pseudoCityCode |
40 | 40 | * @param string|null $requestorType |
41 | - * @param int|null $posType |
|
41 | + * @param integer $posType |
|
42 | 42 | * @param string|null $agentDutyCode |
43 | 43 | */ |
44 | 44 | public function __construct($pseudoCityCode, $requestorType = "U", $posType = 1, $agentDutyCode = null) |
@@ -55,7 +55,7 @@ |
||
55 | 55 | if (!is_null($options)) { |
56 | 56 | $this->offerTatoo = new OfferTatoo($options->tatooNumber); |
57 | 57 | |
58 | - foreach($options->passengerReassociation as $reAssoc) { |
|
58 | + foreach ($options->passengerReassociation as $reAssoc) { |
|
59 | 59 | $this->passengerReassociation[] = new PassengerReassociation( |
60 | 60 | $reAssoc->pricingReference, |
61 | 61 | $reAssoc->paxReferences |
@@ -209,7 +209,7 @@ |
||
209 | 209 | { |
210 | 210 | $result = []; |
211 | 211 | |
212 | - switch($groupTypeString) { |
|
212 | + switch ($groupTypeString) { |
|
213 | 213 | case PriceXplorerExtremeSearchOptions::AGGR_DEST: |
214 | 214 | $result[] = AttributeDetails::TYPE_DESTINATION; |
215 | 215 | break; |
@@ -30,13 +30,13 @@ |
||
30 | 30 | */ |
31 | 31 | class Reference |
32 | 32 | { |
33 | - const QUAL_PASSENGER = "PR"; |
|
33 | + const QUAL_PASSENGER = "PR"; |
|
34 | 34 | |
35 | - const QUAL_PASSTAT = "PT"; |
|
35 | + const QUAL_PASSTAT = "PT"; |
|
36 | 36 | |
37 | - const QUAL_SEGTAT = "ST"; |
|
37 | + const QUAL_SEGTAT = "ST"; |
|
38 | 38 | |
39 | - const QUAL_OTHER = "OT"; |
|
39 | + const QUAL_OTHER = "OT"; |
|
40 | 40 | |
41 | 41 | |
42 | 42 | /** |
@@ -31,8 +31,8 @@ |
||
31 | 31 | class Fop |
32 | 32 | { |
33 | 33 | const IDENT_CASH = "CA"; |
34 | - const IDENT_CHECK = "CK"; |
|
35 | - const IDENT_CREDITCARD = "CC"; |
|
34 | + const IDENT_CHECK = "CK"; |
|
35 | + const IDENT_CREDITCARD = "CC"; |
|
36 | 36 | const IDENT_MISC = "MS"; |
37 | 37 | |
38 | 38 | /** |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * [Option element codesets (Ref: 106P 1A 00.1.2)] |
39 | 39 | * @var int |
40 | 40 | */ |
41 | - const ACTIONOPTION_NO_SPECIAL_PROCESSING = 0; |
|
41 | + const ACTIONOPTION_NO_SPECIAL_PROCESSING = 0; |
|
42 | 42 | /** |
43 | 43 | * PNR action option: End Transact |
44 | 44 | * |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * [Option element codesets (Ref: 106P 1A 00.1.2)] |
48 | 48 | * @var int |
49 | 49 | */ |
50 | - const ACTIONOPTION_END_TRANSACT = 10; |
|
50 | + const ACTIONOPTION_END_TRANSACT = 10; |
|
51 | 51 | /** |
52 | 52 | * PNR action option: End transact with retrieve |
53 | 53 | * |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * [Option element codesets (Ref: 106P 1A 00.1.2)] |
57 | 57 | * @var int |
58 | 58 | */ |
59 | - const ACTIONOPTION_END_TRANSACT_W_RETRIEVE = 11; |
|
59 | + const ACTIONOPTION_END_TRANSACT_W_RETRIEVE = 11; |
|
60 | 60 | /** |
61 | 61 | * PNR Action Option: Ignore PNR |
62 | 62 | * |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * [Option element codesets (Ref: 106P 1A 00.1.2)] |
66 | 66 | * @var int |
67 | 67 | */ |
68 | - const ACTIONOPTION_IGNORE = 20; |
|
68 | + const ACTIONOPTION_IGNORE = 20; |
|
69 | 69 | /** |
70 | 70 | * PNR Action Option: Ignore PNR and retrieve |
71 | 71 | * |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * [Option element codesets (Ref: 106P 1A 00.1.2)] |
75 | 75 | * @var int |
76 | 76 | */ |
77 | - const ACTIONOPTION_IGNORE_W_RETRIEVE = 21; |
|
77 | + const ACTIONOPTION_IGNORE_W_RETRIEVE = 21; |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * PNR_AddMultiElements/pnrActions/optionCode |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @var string |
41 | 41 | */ |
42 | - const SEGNAME_RECEIVE_FROM = "RF"; |
|
42 | + const SEGNAME_RECEIVE_FROM = "RF"; |
|
43 | 43 | /** |
44 | 44 | * Segment name "General Remark" |
45 | 45 | * |
@@ -49,13 +49,13 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @var string |
51 | 51 | */ |
52 | - const SEGNAME_GENERAL_REMARK = "RM"; |
|
52 | + const SEGNAME_GENERAL_REMARK = "RM"; |
|
53 | 53 | /** |
54 | 54 | * Segment name "Form Of Payment" |
55 | 55 | * |
56 | 56 | * @var string |
57 | 57 | */ |
58 | - const SEGNAME_FORM_OF_PAYMENT = "FP"; |
|
58 | + const SEGNAME_FORM_OF_PAYMENT = "FP"; |
|
59 | 59 | /** |
60 | 60 | * Segment name "Ticketing Element" |
61 | 61 | * |
@@ -61,7 +61,7 @@ |
||
61 | 61 | public function __construct(TicketCreateTstFromPricingOptions $params) |
62 | 62 | { |
63 | 63 | foreach ($params->pricings as $pricing) { |
64 | - $tmp = new PsaList( |
|
64 | + $tmp = new PsaList( |
|
65 | 65 | $pricing->tstNumber, |
66 | 66 | ItemReference::REFTYPE_TST |
67 | 67 | ); |