src/Amadeus/Client/Struct/Fare/PricePNRWithBookingClass13.php 1 location
|
@@ 536-552 (lines=17) @@
|
| 533 |
|
* @param \DateTime|null $pastDate |
| 534 |
|
* @return PricingOptionGroup[] |
| 535 |
|
*/ |
| 536 |
|
protected static function loadPastDate($pastDate) |
| 537 |
|
{ |
| 538 |
|
$opt = []; |
| 539 |
|
|
| 540 |
|
if ($pastDate instanceof \DateTime) { |
| 541 |
|
$po = new PricingOptionGroup(PricingOptionKey::OPTION_PAST_DATE_PRICING); |
| 542 |
|
|
| 543 |
|
$po->dateInformation = new DateInformation( |
| 544 |
|
DateInformation::OPT_DATE_OVERRIDE, |
| 545 |
|
$pastDate |
| 546 |
|
); |
| 547 |
|
|
| 548 |
|
$opt[] = $po; |
| 549 |
|
} |
| 550 |
|
|
| 551 |
|
return $opt; |
| 552 |
|
} |
| 553 |
|
|
| 554 |
|
|
| 555 |
|
/** |
src/Amadeus/Client/Struct/Service/IntegratedPricing.php 1 location
|
@@ 263-279 (lines=17) @@
|
| 260 |
|
* @param \DateTime|null $dateOverride |
| 261 |
|
* @return PricingOption[] |
| 262 |
|
*/ |
| 263 |
|
protected static function loadDateOverride($dateOverride) |
| 264 |
|
{ |
| 265 |
|
$opt = []; |
| 266 |
|
|
| 267 |
|
if ($dateOverride instanceof \DateTime) { |
| 268 |
|
$po = new PricingOption(PricingOptionKey::OVERRIDE_PRICING_DATE); |
| 269 |
|
|
| 270 |
|
$po->dateInformation = new DateInformation( |
| 271 |
|
DateInformation::OPT_DATE_OVERRIDE, |
| 272 |
|
$dateOverride |
| 273 |
|
); |
| 274 |
|
|
| 275 |
|
$opt[] = $po; |
| 276 |
|
} |
| 277 |
|
|
| 278 |
|
return $opt; |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
/** |
| 282 |
|
* @param string|null $posOverride |