@@ 498-511 (lines=14) @@ | ||
495 | * @param string|null $waiverCode |
|
496 | * @return PricingOption[] |
|
497 | */ |
|
498 | protected function loadWaiverCode($waiverCode) |
|
499 | { |
|
500 | $opt = []; |
|
501 | ||
502 | if (!empty($waiverCode)) { |
|
503 | $po = new PricingOption(PricingOptionKey::OPTION_WAIVER_OPTION); |
|
504 | ||
505 | $po->optionDetail = new OptionDetail($waiverCode); |
|
506 | ||
507 | $opt[] = $po; |
|
508 | } |
|
509 | ||
510 | return $opt; |
|
511 | } |
|
512 | ||
513 | /** |
|
514 | * @param PaxSegRef[] $overrideReusableAmountRefs |
@@ 501-512 (lines=12) @@ | ||
498 | * @param string|null $pricingLogic |
|
499 | * @return PricingOptionGroup[] |
|
500 | */ |
|
501 | protected static function loadPricingLogic($pricingLogic) |
|
502 | { |
|
503 | $opt = []; |
|
504 | ||
505 | if (!empty($pricingLogic)) { |
|
506 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_PRICING_LOGIC); |
|
507 | $po->optionDetail = new OptionDetail($pricingLogic); |
|
508 | $opt[] = $po; |
|
509 | } |
|
510 | ||
511 | return $opt; |
|
512 | } |
|
513 | ||
514 | /** |
|
515 | * @param string|null $ticketType |
|
@@ 518-531 (lines=14) @@ | ||
515 | * @param string|null $ticketType |
|
516 | * @return PricingOptionGroup[] |
|
517 | */ |
|
518 | protected static function loadTicketType($ticketType) |
|
519 | { |
|
520 | $opt = []; |
|
521 | ||
522 | if (!empty($ticketType)) { |
|
523 | $po = new PricingOptionGroup(PricingOptionKey::OPTION_TICKET_TYPE); |
|
524 | ||
525 | $po->optionDetail = new OptionDetail($ticketType); |
|
526 | ||
527 | $opt[] = $po; |
|
528 | } |
|
529 | ||
530 | return $opt; |
|
531 | } |
|
532 | ||
533 | /** |
|
534 | * @param Tax[] $taxes |