1 | <?php |
||
6 | class AirlineItinerary extends AbstractAirline |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $introMessage; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $pnrNumber; |
||
18 | |||
19 | /** |
||
20 | * @var \Kerox\Messenger\Model\Message\Attachment\Template\Airline\PassengerInfo[] |
||
21 | */ |
||
22 | protected $passengerInfo; |
||
23 | |||
24 | /** |
||
25 | * @var \Kerox\Messenger\Model\Message\Attachment\Template\Airline\ExtendedFlightInfo[] |
||
26 | */ |
||
27 | protected $flightInfo; |
||
28 | |||
29 | /** |
||
30 | * @var \Kerox\Messenger\Model\Message\Attachment\Template\Airline\PassengerSegmentInfo[] |
||
31 | */ |
||
32 | protected $passengerSegmentInfo; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | protected $priceInfo = []; |
||
38 | |||
39 | /** |
||
40 | * @var null|float |
||
41 | */ |
||
42 | protected $basePrice; |
||
43 | |||
44 | /** |
||
45 | * @var null|float |
||
46 | */ |
||
47 | protected $tax; |
||
48 | |||
49 | /** |
||
50 | * @var float |
||
51 | */ |
||
52 | protected $totalPrice; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $currency; |
||
58 | |||
59 | /** |
||
60 | * AirlineItinerary constructor. |
||
61 | * |
||
62 | * @param string $introMessage |
||
63 | * @param string $locale |
||
64 | * @param string $pnrNumber |
||
65 | * @param \Kerox\Messenger\Model\Message\Attachment\Template\Airline\PassengerInfo[] $passengerInfo |
||
66 | * @param \Kerox\Messenger\Model\Message\Attachment\Template\Airline\ExtendedFlightInfo[] $flightInfo |
||
67 | * @param \Kerox\Messenger\Model\Message\Attachment\Template\Airline\PassengerSegmentInfo[] $passengerSegmentInfo |
||
68 | * @param float $totalPrice |
||
69 | * @param string $currency |
||
70 | */ |
||
71 | public function __construct(string $introMessage, |
||
90 | |||
91 | /** |
||
92 | * @param string $title |
||
93 | * @param float $amount |
||
94 | * @param string $currency |
||
95 | * @return \Kerox\Messenger\Model\Message\Attachment\Template\AirlineItinerary |
||
96 | * @internal param array|null $priceInfo |
||
97 | */ |
||
98 | public function addPriceInfo(string $title, float $amount, string $currency = null): AirlineItinerary |
||
115 | |||
116 | /** |
||
117 | * @param float $basePrice |
||
118 | * @return AirlineItinerary |
||
119 | */ |
||
120 | public function setBasePrice(float $basePrice): AirlineItinerary |
||
126 | |||
127 | /** |
||
128 | * @param float $tax |
||
129 | * @return AirlineItinerary |
||
130 | */ |
||
131 | public function setTax(float $tax): AirlineItinerary |
||
137 | |||
138 | /** |
||
139 | * @return array |
||
140 | */ |
||
141 | public function jsonSerialize(): array |
||
166 | } |
||
167 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.