1 | <?php |
||
4 | class ExtendedFlightInfo extends FlightInfo implements TravelClassInterface |
||
5 | { |
||
6 | |||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $connectionId; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $segmentId; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $aircraftType; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $travelClass; |
||
26 | |||
27 | /** |
||
28 | * ExtendedFlightInfo constructor. |
||
29 | * |
||
30 | * @param string $connectionId |
||
31 | * @param string $segmentId |
||
32 | * @param string $flightNumber |
||
33 | * @param \Kerox\Messenger\Message\Attachment\Template\Airline\Airport $departureAirport |
||
34 | * @param \Kerox\Messenger\Message\Attachment\Template\Airline\Airport $arrivalAirport |
||
35 | * @param \Kerox\Messenger\Message\Attachment\Template\Airline\FlightSchedule $flightSchedule |
||
36 | * @param string $travelClass |
||
37 | */ |
||
38 | public function __construct(string $connectionId, |
||
54 | |||
55 | /** |
||
56 | * @param string $aircraftType |
||
57 | * @return ExtendedFlightInfo |
||
58 | */ |
||
59 | public function setAircraftType(string $aircraftType): ExtendedFlightInfo |
||
65 | |||
66 | /** |
||
67 | * @param string $travelClass |
||
68 | * @return void |
||
69 | * @throws \InvalidArgumentException |
||
70 | */ |
||
71 | public function isValidTravelClass(string $travelClass) |
||
78 | |||
79 | /** |
||
80 | * @return array |
||
81 | */ |
||
82 | public function getAllowedTravelClass(): array |
||
90 | |||
91 | /** |
||
92 | * @return array |
||
93 | */ |
||
94 | public function jsonSerialize(): array |
||
109 | } |
||
110 |