| @@ -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) | 
| @@ -30,33 +30,33 @@ discard block | ||
| 30 | 30 | */ | 
| 31 | 31 | class Passenger | 
| 32 | 32 |  { | 
| 33 | - const PASST_ADULT = "ADT"; | |
| 34 | - const PASST_INFANT = "INF"; | |
| 35 | - const PASST_CHILD = "CHD"; | |
| 33 | + const PASST_ADULT = "ADT"; | |
| 34 | + const PASST_INFANT = "INF"; | |
| 35 | + const PASST_CHILD = "CHD"; | |
| 36 | 36 | |
| 37 | 37 | /** | 
| 38 | 38 | * 1: Infant (INF) No more info in Edifact. | 
| 39 | 39 | */ | 
| 40 | - const INF_NOINFO = 1; | |
| 40 | + const INF_NOINFO = 1; | |
| 41 | 41 | /** | 
| 42 | 42 | * 2: Infant given name only (INF/BILL) Infant given name will be placed | 
| 43 | 43 | * in a 2nd occurence of C324 of this (adult) passenger TIF. | 
| 44 | 44 | * The 2nd C324/6353 element will contain INF. | 
| 45 | 45 | */ | 
| 46 | - const INF_GIVEN = 2; | |
| 46 | + const INF_GIVEN = 2; | |
| 47 | 47 | /** | 
| 48 | 48 | * 3: Infant given and last name (INFGATES/BILL) Infant is treated as a | 
| 49 | 49 | * separate TIF following immediately this (adult) passenger TIF. | 
| 50 | 50 | * This following TIF C324/6353 element will contain INF. | 
| 51 | 51 | */ | 
| 52 | - const INF_FULL = 3; | |
| 52 | + const INF_FULL = 3; | |
| 53 | 53 | |
| 54 | 54 | /** | 
| 55 | 55 | * @var string | 
| 56 | 56 | */ | 
| 57 | - public $firstName; | |
| 57 | + public $firstName; | |
| 58 | 58 | |
| 59 | - /* | |
| 59 | + /* | |
| 60 | 60 | * self::PASST_* | 
| 61 | 61 | * | 
| 62 | 62 | * Passenger Types: | 
| @@ -231,26 +231,26 @@ discard block | ||
| 231 | 231 | * | 
| 232 | 232 | * @var string | 
| 233 | 233 | */ | 
| 234 | - public $type; | |
| 234 | + public $type; | |
| 235 | 235 | |
| 236 | - /* | |
| 236 | + /* | |
| 237 | 237 | * self::INF_* | 
| 238 | 238 | * | 
| 239 | 239 | * @var string|int | 
| 240 | 240 | */ | 
| 241 | - public $infantIndicator; | |
| 241 | + public $infantIndicator; | |
| 242 | 242 | |
| 243 | 243 | /** | 
| 244 | 244 | * @var string | 
| 245 | 245 | */ | 
| 246 | - public $identificationCode; | |
| 246 | + public $identificationCode; | |
| 247 | 247 | |
| 248 | 248 | /** | 
| 249 | 249 | * Passenger constructor. | 
| 250 | 250 | * @param $firstName | 
| 251 | 251 | * @param $type | 
| 252 | 252 | */ | 
| 253 | - public function __construct($firstName, $type) | |
| 253 | + public function __construct($firstName, $type) | |
| 254 | 254 |      { | 
| 255 | 255 | $this->firstName = $firstName; | 
| 256 | 256 | $this->type = $type; | 
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | class Scroll | 
| 32 | 32 |  { | 
| 33 | 33 | /** | 
| 34 | - * @var NumberOfItemsDetails | |
| 35 | - */ | |
| 34 | + * @var NumberOfItemsDetails | |
| 35 | + */ | |
| 36 | 36 | public $numberOfItemsDetails; | 
| 37 | 37 | } | 
| 38 | 38 | \ No newline at end of file | 
| @@ -41,55 +41,55 @@ | ||
| 41 | 41 | */ | 
| 42 | 42 | public $reference; | 
| 43 | 43 | /** | 
| 44 | - * PNR_AddMultiElements/originDestinationDetails/itineraryInfo/elementManagementItinerary/segmentName | |
| 45 | - * | |
| 46 | - * AB Billing Address element | |
| 47 | - * ABU Unstructured Billing Address element | |
| 48 | - * AI Accounting Information element | |
| 49 | - * AIR Air segment | |
| 50 | - * AM Mailing address element | |
| 51 | - * AMU Unstructured Mailing Address Element | |
| 52 | - * AP Contact element | |
| 53 | - * AU ATX - Non-automated Air Taxi auxiliary segment | |
| 54 | - * CU Non-automated Car auxiliary segment | |
| 55 | - * ES Individual PNR Security element | |
| 56 | - * FD Fare Discount element | |
| 57 | - * FE Endorsements / Restrictions element | |
| 58 | - * FF Frequent Flyer entry | |
| 59 | - * FH Manual Document Registration element | |
| 60 | - * FHA Automated ticket number | |
| 61 | - * FHE Electronic ticket number | |
| 62 | - * FHM Manual ticket number/document registration element | |
| 63 | - * FK AIR destination | |
| 64 | - * FM Commission element | |
| 65 | - * FO Original Issue / Issue in Exchange For element | |
| 66 | - * FP Form of Payment element | |
| 67 | - * FS Miscellaneous Ticketing Information element | |
| 68 | - * FT Tour Code element | |
| 69 | - * FV Ticketing Carrier Designator element | |
| 70 | - * FY Fare print override element | |
| 71 | - * FZ Miscellaneous Information element | |
| 72 | - * HU Non-automated Hotel auxiliary segment | |
| 73 | - * NG Group Name element | |
| 74 | - * NM Name element | |
| 75 | - * NZ Non Commerciak PNR Name element | |
| 76 | - * OP Option element | |
| 77 | - * OS Other Special Information element | |
| 78 | - * RC Confidential Remark element | |
| 79 | - * RF Receive From element | |
| 80 | - * RI Invoice remark | |
| 81 | - * RM General Remark elementt | |
| 82 | - * RQ Quality control remark element | |
| 83 | - * RU Non-automated Miscellaneous auxiliary segment | |
| 84 | - * RX Corporate Remark | |
| 85 | - * SK Special Keyword elements | |
| 86 | - * SSR SSR element | |
| 87 | - * STR Seat Request | |
| 88 | - * TK Ticket element | |
| 89 | - * TU Non-automated Tour auxiliary segment | |
| 90 | - * | |
| 91 | - * @var string | |
| 92 | - */ | |
| 44 | + * PNR_AddMultiElements/originDestinationDetails/itineraryInfo/elementManagementItinerary/segmentName | |
| 45 | + * | |
| 46 | + * AB Billing Address element | |
| 47 | + * ABU Unstructured Billing Address element | |
| 48 | + * AI Accounting Information element | |
| 49 | + * AIR Air segment | |
| 50 | + * AM Mailing address element | |
| 51 | + * AMU Unstructured Mailing Address Element | |
| 52 | + * AP Contact element | |
| 53 | + * AU ATX - Non-automated Air Taxi auxiliary segment | |
| 54 | + * CU Non-automated Car auxiliary segment | |
| 55 | + * ES Individual PNR Security element | |
| 56 | + * FD Fare Discount element | |
| 57 | + * FE Endorsements / Restrictions element | |
| 58 | + * FF Frequent Flyer entry | |
| 59 | + * FH Manual Document Registration element | |
| 60 | + * FHA Automated ticket number | |
| 61 | + * FHE Electronic ticket number | |
| 62 | + * FHM Manual ticket number/document registration element | |
| 63 | + * FK AIR destination | |
| 64 | + * FM Commission element | |
| 65 | + * FO Original Issue / Issue in Exchange For element | |
| 66 | + * FP Form of Payment element | |
| 67 | + * FS Miscellaneous Ticketing Information element | |
| 68 | + * FT Tour Code element | |
| 69 | + * FV Ticketing Carrier Designator element | |
| 70 | + * FY Fare print override element | |
| 71 | + * FZ Miscellaneous Information element | |
| 72 | + * HU Non-automated Hotel auxiliary segment | |
| 73 | + * NG Group Name element | |
| 74 | + * NM Name element | |
| 75 | + * NZ Non Commerciak PNR Name element | |
| 76 | + * OP Option element | |
| 77 | + * OS Other Special Information element | |
| 78 | + * RC Confidential Remark element | |
| 79 | + * RF Receive From element | |
| 80 | + * RI Invoice remark | |
| 81 | + * RM General Remark elementt | |
| 82 | + * RQ Quality control remark element | |
| 83 | + * RU Non-automated Miscellaneous auxiliary segment | |
| 84 | + * RX Corporate Remark | |
| 85 | + * SK Special Keyword elements | |
| 86 | + * SSR SSR element | |
| 87 | + * STR Seat Request | |
| 88 | + * TK Ticket element | |
| 89 | + * TU Non-automated Tour auxiliary segment | |
| 90 | + * | |
| 91 | + * @var string | |
| 92 | + */ | |
| 93 | 93 | public $segmentName; | 
| 94 | 94 | |
| 95 | 95 | /** | 
| @@ -30,20 +30,20 @@ | ||
| 30 | 30 | */ | 
| 31 | 31 | class PassengerData | 
| 32 | 32 |  { | 
| 33 | - /** | |
| 34 | - * @var TravellerInformation | |
| 35 | - */ | |
| 36 | - public $travellerInformation; | |
| 37 | - /** | |
| 38 | - * @var DateOfBirth | |
| 39 | - */ | |
| 40 | - public $dateOfBirth; | |
| 33 | + /** | |
| 34 | + * @var TravellerInformation | |
| 35 | + */ | |
| 36 | + public $travellerInformation; | |
| 37 | + /** | |
| 38 | + * @var DateOfBirth | |
| 39 | + */ | |
| 40 | + public $dateOfBirth; | |
| 41 | 41 | |
| 42 | - /** | |
| 43 | - * @param string $mainPassengerSurname | |
| 44 | - */ | |
| 45 | - public function __construct($mainPassengerSurname) | |
| 46 | -	{ | |
| 47 | - $this->travellerInformation = new TravellerInformation($mainPassengerSurname); | |
| 48 | - } | |
| 42 | + /** | |
| 43 | + * @param string $mainPassengerSurname | |
| 44 | + */ | |
| 45 | + public function __construct($mainPassengerSurname) | |
| 46 | + { | |
| 47 | + $this->travellerInformation = new TravellerInformation($mainPassengerSurname); | |
| 48 | + } | |
| 49 | 49 | } | 
| @@ -32,35 +32,35 @@ | ||
| 32 | 32 | */ | 
| 33 | 33 | class Retrieve extends BaseWsMessage | 
| 34 | 34 |  { | 
| 35 | - /** | |
| 36 | - * Definition for retrieval type: by record locator | |
| 37 | - * | |
| 38 | - * see Amadeus Core Webservices documentation | |
| 39 | - * [Retrieval type, coded codesets (Ref: 109P 1A 00.1.1)] | |
| 40 | - * @var int | |
| 41 | - */ | |
| 42 | - const RETR_TYPE_BY_RECLOC = 2; | |
| 35 | + /** | |
| 36 | + * Definition for retrieval type: by record locator | |
| 37 | + * | |
| 38 | + * see Amadeus Core Webservices documentation | |
| 39 | + * [Retrieval type, coded codesets (Ref: 109P 1A 00.1.1)] | |
| 40 | + * @var int | |
| 41 | + */ | |
| 42 | + const RETR_TYPE_BY_RECLOC = 2; | |
| 43 | 43 | |
| 44 | - /** | |
| 45 | - * @var Retrieve\Settings | |
| 46 | - */ | |
| 47 | - public $settings; | |
| 48 | - /** | |
| 49 | - * @var Retrieve\RetrievalFacts | |
| 50 | - */ | |
| 51 | - public $retrievalFacts; | |
| 44 | + /** | |
| 45 | + * @var Retrieve\Settings | |
| 46 | + */ | |
| 47 | + public $settings; | |
| 48 | + /** | |
| 49 | + * @var Retrieve\RetrievalFacts | |
| 50 | + */ | |
| 51 | + public $retrievalFacts; | |
| 52 | 52 | |
| 53 | - /** | |
| 54 | - * Construct PNR_Retrieve message | |
| 55 | - * | |
| 56 | - * @param int $retrievalType | |
| 57 | - * @param string|null $recordLocator (OPTIONAL) | |
| 58 | - */ | |
| 59 | - public function __construct($retrievalType = self::RETR_TYPE_BY_RECLOC, $recordLocator = null) | |
| 60 | -	{ | |
| 61 | - $this->retrievalFacts = new Retrieve\RetrievalFacts( | |
| 62 | - $retrievalType, | |
| 63 | - $recordLocator | |
| 64 | - ); | |
| 65 | - } | |
| 53 | + /** | |
| 54 | + * Construct PNR_Retrieve message | |
| 55 | + * | |
| 56 | + * @param int $retrievalType | |
| 57 | + * @param string|null $recordLocator (OPTIONAL) | |
| 58 | + */ | |
| 59 | + public function __construct($retrievalType = self::RETR_TYPE_BY_RECLOC, $recordLocator = null) | |
| 60 | + { | |
| 61 | + $this->retrievalFacts = new Retrieve\RetrievalFacts( | |
| 62 | + $retrievalType, | |
| 63 | + $recordLocator | |
| 64 | + ); | |
| 65 | + } | |
| 66 | 66 | } | 
| @@ -33,7 +33,7 @@ | ||
| 33 | 33 | const PRICETYPE_TICKETABILITY_PRECHECK = 'TAC'; | 
| 34 | 34 | const PRICETYPE_UNIFARES = 'RU'; | 
| 35 | 35 | const PRICETYPE_PUBLICFARES = 'RP'; | 
| 36 | - const PRICETYPE_CORPORATE_UNIFARES = 'RW'; | |
| 36 | + const PRICETYPE_CORPORATE_UNIFARES = 'RW'; | |
| 37 | 37 | |
| 38 | 38 | /** | 
| 39 | 39 | * self::PRICETYPE_* | 
| @@ -31,28 +31,28 @@ | ||
| 31 | 31 | class SelectionDetailsGroup | 
| 32 | 32 |  { | 
| 33 | 33 | |
| 34 | - /** | |
| 35 | - * @var SelectionDetailsInfo | |
| 36 | - */ | |
| 37 | - public $selectionDetailsInfo; | |
| 34 | + /** | |
| 35 | + * @var SelectionDetailsInfo | |
| 36 | + */ | |
| 37 | + public $selectionDetailsInfo; | |
| 38 | 38 | |
| 39 | - /** | |
| 40 | - * @var NbOfUnitsInfo | |
| 41 | - */ | |
| 42 | - public $nbOfUnitsInfo; | |
| 39 | + /** | |
| 40 | + * @var NbOfUnitsInfo | |
| 41 | + */ | |
| 42 | + public $nbOfUnitsInfo; | |
| 43 | 43 | |
| 44 | - /** | |
| 45 | - * @var DateAndTimeInfo | |
| 46 | - */ | |
| 47 | - public $dateAndTimeInfo; | |
| 44 | + /** | |
| 45 | + * @var DateAndTimeInfo | |
| 46 | + */ | |
| 47 | + public $dateAndTimeInfo; | |
| 48 | 48 | |
| 49 | - /** | |
| 50 | - * @var QuantityInfo | |
| 51 | - */ | |
| 52 | - public $quantityInfo; | |
| 49 | + /** | |
| 50 | + * @var QuantityInfo | |
| 51 | + */ | |
| 52 | + public $quantityInfo; | |
| 53 | 53 | |
| 54 | - /** | |
| 55 | - * @var array | |
| 56 | - */ | |
| 57 | - public $attributeInfo = []; | |
| 54 | + /** | |
| 55 | + * @var array | |
| 56 | + */ | |
| 57 | + public $attributeInfo = []; | |
| 58 | 58 | } | 
| @@ -33,17 +33,17 @@ | ||
| 33 | 33 | class PassengerDef extends LoadParamsFromArray | 
| 34 | 34 |  { | 
| 35 | 35 | /** | 
| 36 | - * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2326&serviceVersionId=2298&isQuery=true# | |
| 37 | - * | |
| 38 | - * Offer_CreateOffer/airPricingRecommendation/paxReference/passengerReference/type | |
| 39 | - * Reference qualifier codesets | |
| 40 | - * Value Description | |
| 41 | - * P Passenger/traveller reference number | |
| 42 | - * PA Adult Passenger | |
| 43 | - * PI Infant Passenger | |
| 36 | + * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2326&serviceVersionId=2298&isQuery=true# | |
| 37 | + * | |
| 38 | + * Offer_CreateOffer/airPricingRecommendation/paxReference/passengerReference/type | |
| 39 | + * Reference qualifier codesets | |
| 40 | + * Value Description | |
| 41 | + * P Passenger/traveller reference number | |
| 42 | + * PA Adult Passenger | |
| 43 | + * PI Infant Passenger | |
| 44 | 44 | * | 
| 45 | 45 | * @var string | 
| 46 | - */ | |
| 46 | + */ | |
| 47 | 47 | public $passengerType = "P"; | 
| 48 | 48 | |
| 49 | 49 | /** |