1 | <?php |
||
34 | class FareOptions |
||
35 | { |
||
36 | /** |
||
37 | * @var PricingTickInfo |
||
38 | */ |
||
39 | public $pricingTickInfo; |
||
40 | /** |
||
41 | * @var Corporate |
||
42 | */ |
||
43 | public $corporate; |
||
44 | /** |
||
45 | * @var TicketingPriceScheme |
||
46 | */ |
||
47 | public $ticketingPriceScheme; |
||
48 | /** |
||
49 | * @var FeeIdDescription |
||
50 | */ |
||
51 | public $feeIdDescription; |
||
52 | /** |
||
53 | * @var ConversionRate |
||
54 | */ |
||
55 | public $conversionRate; |
||
56 | /** |
||
57 | * @var FormOfPaymentDetails[]|array |
||
58 | */ |
||
59 | public $formOfPayment; |
||
60 | |||
61 | public $frequentTravellerInfo; |
||
62 | |||
63 | public $monetaryCabinInfo; |
||
64 | |||
65 | public $multiTicket; |
||
66 | |||
67 | /** |
||
68 | * FareOptions constructor. |
||
69 | * |
||
70 | * @param array $flightOptions List of flight / fare options |
||
71 | * @param array $corpCodesUniFares list of Corporate codes for Corporate Unifares |
||
72 | * @param bool $tickPreCheck Do Ticketability pre-check? |
||
73 | * @param string|null $currency Override Currency conversion |
||
74 | * @param MPFeeId[]|null $feeIds List of FeeIds |
||
75 | * @param string|null Corporate qualifier for Corporate Unifares |
||
76 | * @param $multiTicket |
||
77 | * @param MPTicketingPriceScheme|null $ticketingPriceScheme |
||
78 | * @param array|null $formOfPayment |
||
79 | */ |
||
80 | 52 | public function __construct( |
|
116 | |||
117 | /** |
||
118 | * Set fee ids if needed |
||
119 | * |
||
120 | * @param MPFeeId[] $feeIds |
||
121 | */ |
||
122 | 4 | protected function loadFeeIds($feeIds) |
|
131 | |||
132 | /** |
||
133 | * Set currency override code if needed |
||
134 | * |
||
135 | * @param string|null $currency |
||
136 | */ |
||
137 | 52 | protected function loadCurrencyOverride($currency) |
|
145 | |||
146 | /** |
||
147 | * Set multi ticket on if needed |
||
148 | * |
||
149 | * @param string|null $multiTicket |
||
150 | */ |
||
151 | 52 | protected function loadMultiTicket($multiTicket) |
|
157 | |||
158 | /** |
||
159 | * Add PriceType |
||
160 | * |
||
161 | * @param string $type |
||
162 | */ |
||
163 | 40 | protected function addPriceType($type) |
|
174 | |||
175 | 4 | protected function loadTicketingPriceScheme($ticketingPriceScheme) |
|
184 | |||
185 | 4 | protected function loadFormOfPayment(array $formOfPayment) |
|
196 | } |
||
197 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: