@@ 464-491 (lines=28) @@ | ||
461 | * @param string|null $potOverride |
|
462 | * @return PricingOption[] |
|
463 | */ |
|
464 | protected function loadPointOverrides($posOverride, $potOverride) |
|
465 | { |
|
466 | $opt = []; |
|
467 | ||
468 | if (!empty($posOverride)) { |
|
469 | $po = new PricingOption(PricingOptionKey::OPTION_POINT_OF_SALE_OVERRIDE); |
|
470 | ||
471 | $po->locationInformation = new LocationInformation( |
|
472 | LocationInformation::TYPE_POINT_OF_SALE, |
|
473 | $posOverride |
|
474 | ); |
|
475 | ||
476 | $opt[] = $po; |
|
477 | } |
|
478 | ||
479 | if (!empty($potOverride)) { |
|
480 | $po2 = new PricingOption(PricingOptionKey::OPTION_POINT_OF_TICKETING_OVERRIDE); |
|
481 | ||
482 | $po2->locationInformation = new LocationInformation( |
|
483 | LocationInformation::TYPE_POINT_OF_TICKETING, |
|
484 | $potOverride |
|
485 | ); |
|
486 | ||
487 | $opt[] = $po2; |
|
488 | } |
|
489 | ||
490 | return $opt; |
|
491 | } |
|
492 | ||
493 | ||
494 | /** |
@@ 461-488 (lines=28) @@ | ||
458 | * @param string|null $potOverride |
|
459 | * @return PricingOptionGroup[] |
|
460 | */ |
|
461 | protected static function loadPointOverrides($posOverride, $potOverride) |
|
462 | { |
|
463 | $opt = []; |
|
464 | ||
465 | if (!empty($posOverride)) { |
|
466 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_POINT_OF_SALE_OVERRIDE); |
|
467 | ||
468 | $po->locationInformation = new LocationInformation( |
|
469 | LocationInformation::TYPE_POINT_OF_SALE, |
|
470 | $posOverride |
|
471 | ); |
|
472 | ||
473 | $opt[] = $po; |
|
474 | } |
|
475 | ||
476 | if (!empty($potOverride)) { |
|
477 | $po2 = new PricingOptionGroup(PricingOptionKey::OPTION_POINT_OF_TICKETING_OVERRIDE); |
|
478 | ||
479 | $po2->locationInformation = new LocationInformation( |
|
480 | LocationInformation::TYPE_POINT_OF_TICKETING, |
|
481 | $potOverride |
|
482 | ); |
|
483 | ||
484 | $opt[] = $po2; |
|
485 | } |
|
486 | ||
487 | return $opt; |
|
488 | } |
|
489 | ||
490 | /** |
|
491 | * @param string|null $pricingLogic |