1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Amadeus |
4
|
|
|
* |
5
|
|
|
* Copyright 2015 Amadeus Benelux NV |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
namespace Amadeus\Client\Struct\Air; |
9
|
|
|
|
10
|
|
|
use Amadeus\Client\RequestOptions\Air\RetrieveSeatMap\FlightInfo as RequestFlightInfo; |
11
|
|
|
use Amadeus\Client\RequestOptions\Air\RetrieveSeatMap\FrequentFlyer; |
12
|
|
|
use Amadeus\Client\RequestOptions\AirRetrieveSeatMapOptions; |
13
|
|
|
use Amadeus\Client\Struct\Air\RetrieveSeatMap\FrequentTravelerInfo; |
14
|
|
|
use Amadeus\Client\Struct\Air\RetrieveSeatMap\TravelProductIdent; |
15
|
|
|
use Amadeus\Client\Struct\BaseWsMessage; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* RetrieveSeatMap |
19
|
|
|
* |
20
|
|
|
* @package Amadeus\Client\Struct\Air |
21
|
|
|
* @author Dieter Devlieghere <[email protected]> |
22
|
|
|
*/ |
23
|
|
|
class RetrieveSeatMap extends BaseWsMessage |
24
|
|
|
{ |
25
|
|
|
/** |
26
|
|
|
* @var RetrieveSeatMap\TravelProductIdent |
27
|
|
|
*/ |
28
|
|
|
public $travelProductIdent; |
29
|
|
|
|
30
|
|
|
public $seatRequestParameters; |
31
|
|
|
|
32
|
|
|
public $productInformation; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var RetrieveSeatMap\FrequentTravelerInfo |
36
|
|
|
*/ |
37
|
|
|
public $frequentTravelerInfo; |
38
|
|
|
|
39
|
|
|
public $resControlInfo; |
40
|
|
|
|
41
|
|
|
public $equipmentInformation; |
42
|
|
|
|
43
|
|
|
public $additionalInfo; |
44
|
|
|
|
45
|
|
|
public $conversionRate; |
46
|
|
|
|
47
|
|
|
public $traveler = []; |
48
|
|
|
|
49
|
|
|
public $suitablePassenger; |
50
|
|
|
|
51
|
|
|
public $processIndicators; |
52
|
|
|
|
53
|
|
|
|
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* RetrieveSeatMap constructor. |
57
|
|
|
* |
58
|
|
|
* @param AirRetrieveSeatMapOptions $options |
59
|
|
|
*/ |
60
|
|
|
public function __construct(AirRetrieveSeatMapOptions $options) |
61
|
|
|
{ |
62
|
|
|
if ($options->flight instanceof RequestFlightInfo) { |
63
|
|
|
$this->travelProductIdent = new TravelProductIdent($options->flight); |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
if ($options->frequentFlyer instanceof FrequentFlyer) { |
67
|
|
|
$this->frequentTravelerInfo = new FrequentTravelerInfo($options->frequentFlyer); |
68
|
|
|
} |
69
|
|
|
} |
70
|
|
|
} |
71
|
|
|
|