-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
350 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/** | ||
* amadeus-ws-client | ||
* | ||
* Copyright 2015 Amadeus Benelux NV | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @package Amadeus | ||
* @license https://opensource.org/licenses/Apache-2.0 Apache 2.0 | ||
*/ | ||
|
||
namespace Amadeus\Client\Struct\Fare\MasterPricer; | ||
|
||
/** | ||
* CabinId | ||
* | ||
* @package Amadeus\Client\Struct\Fare\MasterPricer | ||
*/ | ||
class CabinId | ||
{ | ||
const CABIN_ECONOMY = "Y"; | ||
const CABIN_ECONOMY_STANDARD = "M"; | ||
const CABIN_ECONOMY_PREMIUM = "W"; | ||
const CABIN_BUSINESS = "C"; | ||
const CABIN_FIRST_SUPERSONIC = "F"; | ||
|
||
/** | ||
* MC Major cabin | ||
* MD Mandatory cabin for all segments | ||
* RC Recommended cabin to be used at least one segment | ||
* | ||
* @var string | ||
*/ | ||
public $cabinQualifier; | ||
|
||
/** | ||
* self::CABIN_* | ||
* | ||
* @var string | ||
*/ | ||
public $cabin; | ||
|
||
/** | ||
* CabinId constructor. | ||
* | ||
* @param string $cabinCode self::CABIN_* | ||
*/ | ||
public function __construct($cabinCode) | ||
{ | ||
$this->cabin = $cabinCode; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
src/Amadeus/Client/Struct/Fare/MasterPricer/TravelFlightInfo.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
/** | ||
* amadeus-ws-client | ||
* | ||
* Copyright 2015 Amadeus Benelux NV | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @package Amadeus | ||
* @license https://opensource.org/licenses/Apache-2.0 Apache 2.0 | ||
*/ | ||
|
||
namespace Amadeus\Client\Struct\Fare\MasterPricer; | ||
|
||
/** | ||
* TravelFlightInfo | ||
* | ||
* @package Amadeus\Client\Struct\Fare\MasterPricer | ||
*/ | ||
class TravelFlightInfo | ||
{ | ||
/** | ||
* @var CabinId | ||
*/ | ||
public $cabinId; | ||
|
||
public $companyIdentity = []; | ||
|
||
public $flightDetail; | ||
|
||
public $inclusionDetail = []; | ||
|
||
public $exclusionDetail = []; | ||
|
||
public $unitNumberDetail = []; | ||
|
||
/** | ||
* TravelFlightInfo constructor. | ||
* | ||
* @param string|null $cabinCode | ||
*/ | ||
public function __construct($cabinCode = null) | ||
{ | ||
if (!is_null($cabinCode)) { | ||
$this->cabinId = new CabinId($cabinCode); | ||
} | ||
} | ||
} |
Oops, something went wrong.