@@ -181,7 +181,7 @@ |
||
| 181 | 181 | |
| 182 | 182 | /** |
| 183 | 183 | * @param string $overrideCode |
| 184 | - * @param string|array|null $options |
|
| 184 | + * @param string $options |
|
| 185 | 185 | * @param PaxSegRef[] $references |
| 186 | 186 | * @return PricingOption[] |
| 187 | 187 | */ |
@@ -74,8 +74,8 @@ discard block |
||
| 74 | 74 | $priceOptions = []; |
| 75 | 75 | |
| 76 | 76 | $priceOptions = self::mergeOptions( |
| 77 | - $priceOptions, |
|
| 78 | - self::makePricingOptionFareBasisOverride($options->pricingsFareBasis) |
|
| 77 | + $priceOptions, |
|
| 78 | + self::makePricingOptionFareBasisOverride($options->pricingsFareBasis) |
|
| 79 | 79 | ); |
| 80 | 80 | |
| 81 | 81 | $priceOptions = self::mergeOptions( |
@@ -168,28 +168,28 @@ discard block |
||
| 168 | 168 | */ |
| 169 | 169 | protected static function makePricingOptionFareBasisOverride($pricingsFareBasis) |
| 170 | 170 | { |
| 171 | - $opt = []; |
|
| 171 | + $opt = []; |
|
| 172 | 172 | |
| 173 | - if ($pricingsFareBasis !== null) { |
|
| 174 | - foreach ($pricingsFareBasis as $pricingFareBasis) { |
|
| 175 | - $po = new PricingOptionGroup(PricingOptionKey::OPTION_FARE_BASIS_SIMPLE_OVERRIDE); |
|
| 173 | + if ($pricingsFareBasis !== null) { |
|
| 174 | + foreach ($pricingsFareBasis as $pricingFareBasis) { |
|
| 175 | + $po = new PricingOptionGroup(PricingOptionKey::OPTION_FARE_BASIS_SIMPLE_OVERRIDE); |
|
| 176 | 176 | |
| 177 | - //Support for legacy fareBasisPrimaryCode to be removed when breaking BC: |
|
| 178 | - $po->optionDetail = new OptionDetail( |
|
| 179 | - $pricingFareBasis->fareBasisPrimaryCode.$pricingFareBasis->fareBasisCode |
|
| 180 | - ); |
|
| 177 | + //Support for legacy fareBasisPrimaryCode to be removed when breaking BC: |
|
| 178 | + $po->optionDetail = new OptionDetail( |
|
| 179 | + $pricingFareBasis->fareBasisPrimaryCode.$pricingFareBasis->fareBasisCode |
|
| 180 | + ); |
|
| 181 | 181 | |
| 182 | - //Support for legacy segmentReference to be removed when breaking BC: |
|
| 183 | - $po->paxSegTstReference = new PaxSegTstReference( |
|
| 184 | - $pricingFareBasis->references, |
|
| 185 | - $pricingFareBasis->segmentReference |
|
| 186 | - ); |
|
| 182 | + //Support for legacy segmentReference to be removed when breaking BC: |
|
| 183 | + $po->paxSegTstReference = new PaxSegTstReference( |
|
| 184 | + $pricingFareBasis->references, |
|
| 185 | + $pricingFareBasis->segmentReference |
|
| 186 | + ); |
|
| 187 | 187 | |
| 188 | - $opt[] = $po; |
|
| 189 | - } |
|
| 190 | - } |
|
| 188 | + $opt[] = $po; |
|
| 189 | + } |
|
| 190 | + } |
|
| 191 | 191 | |
| 192 | - return $opt; |
|
| 192 | + return $opt; |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | |
@@ -30,9 +30,9 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | class TravellerDetails |
| 32 | 32 | { |
| 33 | - /** |
|
| 34 | - * @var int |
|
| 35 | - */ |
|
| 33 | + /** |
|
| 34 | + * @var int |
|
| 35 | + */ |
|
| 36 | 36 | public $referenceNumber; |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * segmentControlDetails constructor. |
| 40 | 40 | * |
| 41 | 41 | * @param int $referenceNumber |
| 42 | - */ |
|
| 42 | + */ |
|
| 43 | 43 | public function __construct($referenceNumber) |
| 44 | 44 | { |
| 45 | 45 | $this->travellerDetails = new TravellerDetails( |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function __construct($passenger, $referenceNumber) |
| 53 | 53 | { |
| 54 | - $this->specificTravellerDetails = new SpecificTravellerDetails($referenceNumber); |
|
| 54 | + $this->specificTravellerDetails = new SpecificTravellerDetails($referenceNumber); |
|
| 55 | 55 | |
| 56 | 56 | if (!empty($passenger->type)) { |
| 57 | 57 | $this->fareInfo = new FareInfo($passenger->type); |
@@ -47,7 +47,6 @@ |
||
| 47 | 47 | * PassengersGroup constructor. |
| 48 | 48 | * |
| 49 | 49 | * @param Passenger $passenger |
| 50 | - * @param int $group |
|
| 51 | 50 | */ |
| 52 | 51 | public function __construct($passenger, $referenceNumber) |
| 53 | 52 | { |
@@ -38,6 +38,6 @@ |
||
| 38 | 38 | |
| 39 | 39 | public function __construct($paxType) |
| 40 | 40 | { |
| 41 | - $this->valueQualifier = $paxType; |
|
| 41 | + $this->valueQualifier = $paxType; |
|
| 42 | 42 | } |
| 43 | 43 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | class PricingOptionKey |
| 32 | 32 | { |
| 33 | - const OPTION_FARE_BASIS_SIMPLE_OVERRIDE = "FBA"; |
|
| 33 | + const OPTION_FARE_BASIS_SIMPLE_OVERRIDE = "FBA"; |
|
| 34 | 34 | const OVERRIDE_ACCOUNT_CODE = "ACC"; |
| 35 | 35 | const OVERRIDE_PRICING_ALL_SERVICES = "ALL"; |
| 36 | 36 | const OVERRIDE_AWARD = "AWD"; |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | class ServiceStandaloneCatalogueOptions extends Base |
| 31 | 31 | {
|
| 32 | - public $passengers = []; |
|
| 32 | + public $passengers = []; |
|
| 33 | 33 | |
| 34 | - public $segments = []; |
|
| 34 | + public $segments = []; |
|
| 35 | 35 | |
| 36 | - public $pricingOptions; |
|
| 36 | + public $pricingOptions; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
@@ -32,10 +32,10 @@ |
||
| 32 | 32 | class PricingOptions extends ServiceIntegratedPricingOptions |
| 33 | 33 | { |
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * Provide a fare basis to price with |
|
| 37 | - * |
|
| 38 | - * @var FareBasis[] |
|
| 39 | - */ |
|
| 40 | - public $pricingsFareBasis = []; |
|
| 35 | + /** |
|
| 36 | + * Provide a fare basis to price with |
|
| 37 | + * |
|
| 38 | + * @var FareBasis[] |
|
| 39 | + */ |
|
| 40 | + public $pricingsFareBasis = []; |
|
| 41 | 41 | } |
@@ -1575,13 +1575,13 @@ |
||
| 1575 | 1575 | * @throws Exception |
| 1576 | 1576 | */ |
| 1577 | 1577 | public function serviceStandaloneCatalogue( |
| 1578 | - RequestOptions\ServiceStandaloneCatalogueOptions $options, |
|
| 1579 | - $messageOptions = [] |
|
| 1578 | + RequestOptions\ServiceStandaloneCatalogueOptions $options, |
|
| 1579 | + $messageOptions = [] |
|
| 1580 | 1580 | |
| 1581 | 1581 | ) { |
| 1582 | - $msgName = 'Service_StandaloneCatalogue'; |
|
| 1582 | + $msgName = 'Service_StandaloneCatalogue'; |
|
| 1583 | 1583 | |
| 1584 | - return $this->callMessage($msgName, $options, $messageOptions); |
|
| 1584 | + return $this->callMessage($msgName, $options, $messageOptions); |
|
| 1585 | 1585 | } |
| 1586 | 1586 | |
| 1587 | 1587 | /** |