code
stringlengths
17
247k
docstring
stringlengths
30
30.3k
func_name
stringlengths
1
89
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
7
153
url
stringlengths
51
209
license
stringclasses
4 values
public function __construct($options) { $this->overrideInformation = new OverrideInformation(); if (!is_null($options)) { $this->loadPricingOptions($options); } }
PricePNRWithBookingClass12 constructor. @param FarePricePnrWithBookingClassOptions|LowerFareOpt|LowestFareOpt|null $options
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePNRWithBookingClass12.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePNRWithBookingClass12.php
Apache-2.0
protected function convertTicketType($optionsTicketType) { $converted = null; $map = [ FarePricePnrWithBookingClassOptions::TICKET_TYPE_ELECTRONIC => AttributeDetails::OVERRIDE_ELECTRONIC_TICKET, FarePricePnrWithBookingClassOptions::TICKET_TYPE_PAPER => AttributeDetails::OVERRIDE_PAPER_TICKET, FarePricePnrWithBookingClassOptions::TICKET_TYPE_BOTH => AttributeDetails::OVERRIDE_BOTH_TICKET, ]; if (array_key_exists($optionsTicketType, $map)) { $converted = $map[$optionsTicketType]; } return $converted; }
Convert new codes (Price PNR version 13+) to old format @param string $optionsTicketType @return string|null
convertTicketType
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePNRWithBookingClass12.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePNRWithBookingClass12.php
Apache-2.0
public function __construct(FeeDetailsRequest $feeDetails) { $this->subType = $feeDetails->subType; if (!is_null($feeDetails->option)) { $this->option = $feeDetails->option; } }
DataTypeInformation constructor. @param FeeDetailsRequest $feeDetails
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/DataTypeInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/DataTypeInformation.php
Apache-2.0
public function __construct($refNumber, $refQualifier = self::QUAL_SEGMENT_REFERENCE) { $this->refQualifier = $refQualifier; $this->refNumber = $refNumber; }
ReferencingDetail constructor. @param int $refNumber self::QUAL_* @param string $refQualifier
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/ReferencingDetail.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/ReferencingDetail.php
Apache-2.0
public function __construct($commercialFamily) { $this->commercialFamily = $commercialFamily; }
CommercialFamilyDetails constructor. @param string $commercialFamily
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/CommercialFamilyDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/CommercialFamilyDetails.php
Apache-2.0
public function __construct(FFOtherCriteria $otherCriteria) { $this->logicalLink = new LogicalLink($otherCriteria->logicalOperator); $this->familyCriteria = new FamilyCriteria($otherCriteria->criteria); }
OtherPossibleCriteria constructor. @param FFOtherCriteria $otherCriteria
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/OtherPossibleCriteria.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/OtherPossibleCriteria.php
Apache-2.0
public function __construct($codeOperator) { $this->codeOperator = $codeOperator; }
BooleanExpression constructor. @param string $codeOperator self::CODE_*
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/BooleanExpression.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/BooleanExpression.php
Apache-2.0
public function __construct($type) { $this->type = $type; }
CarrierFeeDetails constructor. @param string $type
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/CarrierFeeDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/CarrierFeeDetails.php
Apache-2.0
public function __construct($fareBasis = null, $fareType = null) { $this->fareBasis = $fareBasis; if (!is_null($fareType)) { $this->fareType[] = $fareType; } }
FareProductDetail constructor. @param string|null $fareBasis @param string|null $fareType
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/FareProductDetail.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/FareProductDetail.php
Apache-2.0
public function __construct($reference, $qualifier) { $this->referenceQualifier = $qualifier; parent::__construct($reference); }
CustomerReferences constructor. @param string $reference Customer Reference @param int|string $qualifier Type of reference (self::QUAL_*)
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/CustomerReferences.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/CustomerReferences.php
Apache-2.0
protected function loadCurrencyOverride($currency) { if (is_string($currency) && strlen($currency) === 3) { $this->addPriceType(PricingTicketing::PRICETYPE_OVERRIDE_CURRENCY_CONVERSION); $this->conversionRate = new ConversionRate($currency); } }
Set currency override code if needed @param string|null $currency
loadCurrencyOverride
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/FareOptions.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/FareOptions.php
Apache-2.0
public function __construct($fareFamilyname, $hierarchy) { $this->fareFamilyname = $fareFamilyname; $this->hierarchy = $hierarchy; }
FamilyInformation constructor. @param string $fareFamilyname @param string $hierarchy
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/FamilyInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/FamilyInformation.php
Apache-2.0
public function __construct($date) { $this->date = $date; }
FirstDateTimeDetail constructor. @param string $date DDMMYY
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/MasterPricer/FirstDateTimeDetail.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/MasterPricer/FirstDateTimeDetail.php
Apache-2.0
public function __construct($airline) { $this->companyIdentification = new CompanyIdentification($airline); }
CarrierInformation constructor. @param string $airline
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr13/CarrierInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr13/CarrierInformation.php
Apache-2.0
public function __construct($key, $optionDetail = null) { $this->pricingOptionKey = new PricingOptionKey($key); if (isset($optionDetail)) { $this->optionDetail = new OptionDetail($optionDetail); } }
PricingOptionGroup constructor. @param string $key @param string|null $optionDetail
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr13/PricingOptionGroup.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr13/PricingOptionGroup.php
Apache-2.0
public function __construct($tierLevel, $number = null, $carrier = null, $priorityCode = null) { $this->tierLevel = $tierLevel; $this->number = $number; $this->carrier = $carrier; $this->priorityCode = $priorityCode; }
FrequentTravellerDetails constructor. @param string $tierLevel @param string|null $number @param string|null $carrier @param string|null $priorityCode
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr13/FrequentTravellerDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr13/FrequentTravellerDetails.php
Apache-2.0
public function __construct($discountPenaltyQualifier, $data) { $this->discountPenaltyQualifier = $discountPenaltyQualifier; switch ($discountPenaltyQualifier) { case PenDisInformation::QUAL_OB_FEES: $this->loadObFees($data); break; case PenDisInformation::QUAL_DISCOUNT: $this->loadPaxDiscounts($data); break; case PenDisInformation::QUAL_ZAPOFF_DISCOUNT: $this->loadZapOffDiscounts($data); break; } }
PenDisInformation constructor. @param string|null $discountPenaltyQualifier @param mixed $data
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr13/PenDisInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr13/PenDisInformation.php
Apache-2.0
protected static function makeObFeeFunction($include) { return ($include === true) ? ObFee::FUNCTION_INCLUDE : ObFee::FUNCTION_EXCLUDE; }
Make the correct function code @param bool $include @return string
makeObFeeFunction
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr13/PenDisInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr13/PenDisInformation.php
Apache-2.0
public function __construct($date) { if ($date instanceof \DateTime) { $this->year = $date->format('Y'); $this->month = $date->format('m'); $this->day = $date->format('d'); } }
PricePnr13 DateTime constructor. @param \DateTime|null $date
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr13/DateTime.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr13/DateTime.php
Apache-2.0
public function __construct(array $fop) { foreach ($fop as $key => $fopOpt) { if ($key === 0) { $this->formOfPayment = new FormOfPayment($fopOpt); } else { $this->otherFormOfPayment[] = new FormOfPayment($fopOpt); } } }
FormOfPaymentInformation constructor. @param FormOfPaymentOptions[] $fop
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr13/FormOfPaymentInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr13/FormOfPaymentInformation.php
Apache-2.0
public function __construct($locationType, $code) { $this->locationType = $locationType; $this->firstLocationDetails = new LocationDetails($code); }
LocationInformation constructor. @param string $locationType @param string $code
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr13/LocationInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr13/LocationInformation.php
Apache-2.0
public function __construct($airline) { $this->otherCompany = $airline; }
CompanyIdentification constructor. @param string $airline
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr13/CompanyIdentification.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr13/CompanyIdentification.php
Apache-2.0
public function __construct($currency, $qualifier = self::QUAL_CURRENCY_OVERRIDE) { $this->currencyIsoCode = $currency; $this->currencyQualifier = $qualifier; }
FirstCurrencyDetails constructor. @param string $currency @param string $qualifier
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr13/FirstCurrencyDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr13/FirstCurrencyDetails.php
Apache-2.0
public function __construct($conversionDirection) { $this->selectionDetails[] = new SelectionDetails($conversionDirection); }
ConversionDirection constructor. @param string $conversionDirection SelectionDetails::OPTION_CONVERT_*
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/ConvertCurrency/ConversionDirection.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/ConvertCurrency/ConversionDirection.php
Apache-2.0
public function __construct($conversionType, $amount = null) { $this->rateType = $conversionType; $this->rate = $amount; }
ConversionRateDetails constructor. @param string $conversionType @param double|null $amount
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/ConvertCurrency/ConversionRateDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/ConvertCurrency/ConversionRateDetails.php
Apache-2.0
protected function loadOptionalSegmentInformation($options) { if (!empty($options->operatingCompany)) { $this->segmentInformation->companyDetails->operatingCompany = $options->operatingCompany; } if ($options->arrivalDate instanceof \DateTime) { $this->segmentInformation->flightDate->setArrivalDate($options->arrivalDate); } if (!empty($options->groupNumber)) { $this->segmentInformation->flightTypeDetails = new FlightTypeDetails($options->groupNumber); } $this->loadAdditionalSegmentDetails($options->airplaneCode, $options->nrOfStops); }
Load non-required options if available @param Segment $options
loadOptionalSegmentInformation
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/InformativePricing13/SegmentGroup.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/InformativePricing13/SegmentGroup.php
Apache-2.0
public function __construct( $itemNumber, \DateTime $departureDate, $from, $to, $company, $flightNumber, $bookingClass ) { $this->itemNumber = $itemNumber; parent::__construct($departureDate, $from, $to, $company, $flightNumber, $bookingClass); }
SegmentInformation constructor. @param int $itemNumber @param \DateTime $departureDate @param string $from @param string $to @param string $company @param string $flightNumber @param string $bookingClass
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/InformativePricing13/SegmentInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/InformativePricing13/SegmentInformation.php
Apache-2.0
public function __construct($bookingClass, $availabilityAmount) { $this->designator = $bookingClass; $this->availabilityStatus = $availabilityAmount; }
BookingClassDetails constructor. @param string $bookingClass @param string|int $availabilityAmount
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/InformativePricing13/BookingClassDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/InformativePricing13/BookingClassDetails.php
Apache-2.0
public function __construct($groupNumber, $nrOfPassengers) { $this->segmentControlDetails[] = new SegmentControlDetails( $groupNumber, $nrOfPassengers ); }
SegmentRepetitionControl constructor. @param int $groupNumber @param int $nrOfPassengers
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/InformativePricing13/SegmentRepetitionControl.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/InformativePricing13/SegmentRepetitionControl.php
Apache-2.0
public function __construct($groupNumber, $nrOfPassengers) { $this->quantity = $groupNumber; $this->numberOfUnits = $nrOfPassengers; }
SegmentControlDetails constructor. @param int $groupNumber @param int $nrOfPassengers
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/InformativePricing13/SegmentControlDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/InformativePricing13/SegmentControlDetails.php
Apache-2.0
public function __construct($equipmentCode = null, $nrOfStops = null) { $this->legDetails = new LegDetails($equipmentCode, $nrOfStops); }
AdditionalSegmentDetails constructor. @param string|null $equipmentCode @param int|null $nrOfStops
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/InformativePricing13/AdditionalSegmentDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/InformativePricing13/AdditionalSegmentDetails.php
Apache-2.0
public function __construct($fareBasis, $ticketDesignator, $directionality) { if ($this->checkAnyNotEmpty($fareBasis, $ticketDesignator)) { $this->additionalFareDetails = new AdditionalFareDetails($fareBasis, $ticketDesignator); } if (!empty($directionality)) { $this->fareOptionDetails[] = new FareOptionDetails($directionality); } parent::__construct(null); }
FlightQualification constructor. @param null|string $fareBasis @param $ticketDesignator @param $directionality
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/GetFareRules/FlightQualification.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/GetFareRules/FlightQualification.php
Apache-2.0
public function __construct(\DateTime $travelDate) { $this->dateAndTimeDetails[] = new DateAndTimeDetails($travelDate); }
DateFlightMovement constructor. @param \DateTime $travelDate
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/GetFareRules/DateFlightMovement.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/GetFareRules/DateFlightMovement.php
Apache-2.0
public function __construct($airline) { $this->transportService = new TransportService($airline); }
TransportInformation constructor. @param string $airline
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/GetFareRules/TransportInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/GetFareRules/TransportInformation.php
Apache-2.0
public function __construct($ticketingDate) { if ($ticketingDate instanceof \DateTime) { $this->ticketingDate = $ticketingDate->format('dmy'); } }
ProductDateTimeDetails constructor. @param \DateTime $ticketingDate
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/GetFareRules/ProductDateTimeDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/GetFareRules/ProductDateTimeDetails.php
Apache-2.0
public function __construct($fareQualifier) { $this->fareQualifier = $fareQualifier; }
FareOptionDetails constructor. @param string $fareQualifier
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/GetFareRules/FareOptionDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/GetFareRules/FareOptionDetails.php
Apache-2.0
public function __construct($carrier) { $this->carrierCode = $carrier; }
CarrierInformation constructor. @param $carrier
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr12/CarrierInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr12/CarrierInformation.php
Apache-2.0
public function __construct($tierLevel) { $this->flequentFlyerdetails = new FlequentFlyerdetails($tierLevel); }
FrequentFlyerInformation constructor. @param string $tierLevel
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr12/FrequentFlyerInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr12/FrequentFlyerInformation.php
Apache-2.0
public function __construct($carrier) { $this->companyDetails[] = new CompanyDetails($carrier); }
CarrierAgreements constructor. @param string $carrier
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr12/CarrierAgreements.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr12/CarrierAgreements.php
Apache-2.0
public function __construct($tierLevel) { $this->tierLevel = $tierLevel; }
FlequentFlyerdetails constructor. @param string $tierLevel
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr12/FlequentFlyerdetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr12/FlequentFlyerdetails.php
Apache-2.0
public function __construct($carrierCode) { $this->carrierInformation = new CarrierInformation($carrierCode); }
ValidatingCarrier constructor. @param string $carrierCode
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr12/ValidatingCarrier.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr12/ValidatingCarrier.php
Apache-2.0
public function __construct($mainOverrideType = null, $mainOverrideDesc = null) { if (!is_null($mainOverrideType)) { $this->attributeDetails[] = new AttributeDetails($mainOverrideType, $mainOverrideDesc); } }
OverrideInformation cons/tructor. @param string|null $mainOverrideType @param string|null $mainOverrideDesc
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr12/OverrideInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr12/OverrideInformation.php
Apache-2.0
public function __construct($date) { if ($date instanceof \DateTime) { $this->year = $date->format('y'); $this->month = $date->format('m'); $this->day = $date->format('d'); } }
PricePnr12 DateTime constructor. @param \DateTime|null $date
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr12/DateTime.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr12/DateTime.php
Apache-2.0
public function __construct($segmentNr, $qualifier) { $this->refDetails = new RefDetails($segmentNr, $qualifier); }
FareBasisSegReference constructor. @param $segmentNr @param $qualifier
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr12/FareBasisSegReference.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr12/FareBasisSegReference.php
Apache-2.0
public function __construct($taxIdentifier) { $this->taxIdentifier = $taxIdentifier; }
TaxIdentification constructor. @param string $taxIdentifier self::IDENT_*
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/PricePnr12/TaxIdentification.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/PricePnr12/TaxIdentification.php
Apache-2.0
public function __construct(array $referenceDetails) { $this->referenceDetails = $referenceDetails; }
ReferenceInformation constructor. @param ReferenceDetails[] $referenceDetails
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/GetFareFamilyDescription/ReferenceInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/GetFareFamilyDescription/ReferenceInformation.php
Apache-2.0
public function __construct($rateClass = null, $commodityCategory = null) { $this->rateClass = $rateClass; $this->commodityCategory = $commodityCategory; }
AdditionalFareDetails constructor. @param string|null $rateClass @param string|null $commodityCategory
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/CheckRules/AdditionalFareDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/CheckRules/AdditionalFareDetails.php
Apache-2.0
public function __construct($discountQualifier = null) { if (!is_null($discountQualifier)) { $this->discountDetails[] = new DiscountDetails($discountQualifier); } }
FlightQualification constructor. @param string|null $discountQualifier
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/CheckRules/FlightQualification.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/CheckRules/FlightQualification.php
Apache-2.0
public function __construct($itemNumber, $type = null) { $this->number = $itemNumber; $this->type = $type; }
ItemNumberDetails constructor. @param string $itemNumber @param string|null $type self::TYPE_*
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fare/CheckRules/ItemNumberDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fare/CheckRules/ItemNumberDetails.php
Apache-2.0
public function __construct(DocIssuanceIssueMiscDocOptions $options) { $this->addSelectionItems($options->tsmNumbers, ReferenceDetails::TYPE_TSM); $this->addSelectionItems($options->tsmTattoos, ReferenceDetails::TYPE_TSM_TATTOO); $this->addSelectionItems($options->lineNumbers, ReferenceDetails::TYPE_LINE_NUMBER); $this->loadOptions($options->options, $options->compoundOptions); $this->loadReferences($options); $this->loadPassType($options->passengerType); $this->loadStockReference($options->stockReference); }
IssueMiscellaneousDocuments constructor. @param DocIssuanceIssueMiscDocOptions $options
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/DocIssuance/IssueMiscellaneousDocuments.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/DocIssuance/IssueMiscellaneousDocuments.php
Apache-2.0
public function __construct($agentCode, $type = self::TYPE_AGENT_CODE) { $this->inhouseId = $agentCode; $this->type = $type; }
InternalIdDetails constructor. @param string $agentCode @param string $type
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/DocIssuance/InternalIdDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/DocIssuance/InternalIdDetails.php
Apache-2.0
public function __construct($attributeType, $attributeDescription) { $this->attributeDetails = new AttributeDetails($attributeType, $attributeDescription); }
OtherCompoundOptions constructor. @param string $attributeType AttributeDetails::TYPE_* @param string $attributeDescription
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/DocIssuance/OtherCompoundOptions.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/DocIssuance/OtherCompoundOptions.php
Apache-2.0
public function __construct($attributeType, $attributeDescription = null) { $this->criteriaDetails = new CriteriaDetails($attributeType, $attributeDescription); }
SubCompoundOptions constructor. @param string $attributeType @param string|null $attributeDescription
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/DocIssuance/SubCompoundOptions.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/DocIssuance/SubCompoundOptions.php
Apache-2.0
public function __construct($passengerType) { $this->paxDetails = new PaxDetails($passengerType); }
InfantOrAdultAssociation constructor. @param string $passengerType
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/DocIssuance/InfantOrAdultAssociation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/DocIssuance/InfantOrAdultAssociation.php
Apache-2.0
public function __construct($controlNumber) { $this->controlNumber = $controlNumber; }
StockTicketNumberDetails constructor. @param string $controlNumber
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/DocIssuance/StockTicketNumberDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/DocIssuance/StockTicketNumberDetails.php
Apache-2.0
public function __construct($value, $type = self::TYPE_PAX_TATTOO) { $this->type = $type; $this->value = $value; }
PassengerReference constructor. @param string $value @param string $type
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/DocIssuance/PassengerReference.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/DocIssuance/PassengerReference.php
Apache-2.0
public function __construct($weekDays = [], $departureDayOption = null) { $this->daySelection = new DaySelection($weekDays); if ($departureDayOption === null) { $this->selectionInfo = new SelectionInfo(); } else { $this->selectionInfo = new SelectionInfo($departureDayOption); } }
@param array $weekDays Week days in array format: e.g. array(1, 2) for Monday and Tuesday. MUST BE CONSECUTIVE DAYS @param string|null $departureDayOption
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/PriceXplorer/DepartureDays.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/PriceXplorer/DepartureDays.php
Apache-2.0
public function __construct($weekDays) { $this->dayOfWeek = ""; foreach ($weekDays as $weekDay) { $this->dayOfWeek .= $weekDay; } }
@param array $weekDays Week days in array format: e.g. array(1, 2) for Monday and Tuesday. MUST BE CONSECUTIVE DAYS
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/PriceXplorer/DaySelection.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/PriceXplorer/DaySelection.php
Apache-2.0
public function __construct(PriceXplorerExtremeSearchOptions $params) { $this->itineraryGrp[] = new ItineraryGrp($params->origin); $this->loadDepartureDateLimits($params); if ($params->searchOffice !== null) { $this->officeIdInfo[] = new OfficeIdInfo($params->searchOffice); } $this->loadBudget($params->maxBudget, $params->minBudget, $params->currency); $this->loadDestinations($params); $this->loadDepartureDaysOutIn($params); $this->loadStayDuration($params->stayDurationDays, $params->stayDurationFlexibilityDays); $this->loadCheapestQualifiers($params->returnCheapestNonStop, $params->returnCheapestOverall); $this->loadResultAggregation($params->resultAggregationOption); }
Construct PriceXplorer_ExtremeSearch Request message @param PriceXplorerExtremeSearchOptions $params
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/PriceXplorer/ExtremeSearch.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/PriceXplorer/ExtremeSearch.php
Apache-2.0
public function __construct($cheapestNonStop, $cheapestOverall) { $this->selectionDetailsInfo = new SelectionDetailsInfo( SelectionDetails::OPT_PRICE_RESULT_DISTRIBUTION ); $this->nbOfUnitsInfo = new NbOfUnitsInfo(); if ($cheapestNonStop === true) { $this->nbOfUnitsInfo->quantityDetails[] = new NumberOfUnitDetailsType( null, NumberOfUnitDetailsType::QUAL_CHEAPEST_NONSTOP ); } if ($cheapestOverall === true) { $this->nbOfUnitsInfo->quantityDetails[] = new NumberOfUnitDetailsType( null, NumberOfUnitDetailsType::QUAL_CHEAPEST_OVERALL ); } }
SelectionDetailsGroup constructor. @param bool $cheapestNonStop @param bool $cheapestOverall
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/PriceXplorer/SelectionDetailsGroup.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/PriceXplorer/SelectionDetailsGroup.php
Apache-2.0
public function __construct($option) { $this->selectionDetails[] = new SelectionDetails($option); }
SelectionDetailsInfo constructor. @param string $option SelectionDetails::OPT_*
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/PriceXplorer/SelectionDetailsInfo.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/PriceXplorer/SelectionDetailsInfo.php
Apache-2.0
public function __construct($numberOfUnit = null, $qualifier = self::QUAL_DAY) { $this->numberOfUnit = $numberOfUnit; $this->unitQualifier = $qualifier; }
Create NumberOfUnitDetailsType @param int|null $numberOfUnit @param string $qualifier One of the constants self::QUAL_*
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/PriceXplorer/NumberOfUnitDetailsType.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/PriceXplorer/NumberOfUnitDetailsType.php
Apache-2.0
public function __construct($maxBudget = null, $minBudget = null, $currency = null) { if ($maxBudget !== null && $currency !== null) { $this->monetaryDetails[] = new MonetaryDetails( $maxBudget, MonetaryDetails::QUAL_MAX_BUDGET, $currency ); } if ($minBudget !== null && $currency !== null) { $this->monetaryDetails[] = new MonetaryDetails( $minBudget, MonetaryDetails::QUAL_MIN_BUDGET, $currency ); } }
When providing MAX or MIN you MUST specify currency @param double|int|string|null $maxBudget @param double|int|string|null $minBudget @param string|null $currency
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/PriceXplorer/Budget.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/PriceXplorer/Budget.php
Apache-2.0
public function __construct($address) { $this->address = $address; }
DeviceIdentificationIP constructor. @param string $address
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/DeviceIdentification.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/DeviceIdentification.php
Apache-2.0
public function __construct(InstallmentsInfo $info) { $this->instalmentsNumber = $info->nrOfInstallments; $this->instalmentsFrequency = $info->frequency; $this->instalmentsDatrDateFormat = $info->format; $this->instalmentsStartDate = $this->convertDate($info->startDate, $info->format); }
ExtendedPaymentDetails constructor. @param InstallmentsInfo $info
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/ExtendedPaymentDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/ExtendedPaymentDetails.php
Apache-2.0
public function __construct($type, $listOfData) { $this->dataAndSwitchMap = new DataAndSwitchMap($type, $listOfData); }
PnrSupplementaryData constructor. @param string $type DataAndSwitchMap::TYPE_* @param DataOrSwitch[] $listOfData
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/PnrSupplementaryData.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/PnrSupplementaryData.php
Apache-2.0
public function __construct($veresStatus, $paresStatus, $company, $transactionsStatus, $authenticationIndicator) { $this->veres = $veresStatus; $this->pares = $paresStatus; $this->creditCardCompany = $company; $this->transStatus = $transactionsStatus; $this->authenticationIndicator = $authenticationIndicator; }
AuthenticationDataDetails constructor. @param string|null $veresStatus @param string|null $paresStatus @param string|null $company
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/AuthenticationDataDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/AuthenticationDataDetails.php
Apache-2.0
public function __construct($departureDate, $city) { $this->productDateTimeDetails = new ProductDateTimeDetails($departureDate); $this->locationDetails = new LocationDetails($city); }
PricingTicketingDetails constructor. @param \DateTime $departureDate @param string $city
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/PricingTicketingDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/PricingTicketingDetails.php
Apache-2.0
public function __construct($type, $customerAccount, $membershipStatus, $merchantCode = null) { $this->formOfPayment = new InvoiceFormOfPayment( $type, $customerAccount, $membershipStatus, $merchantCode ); }
InvoiceInformation constructor. @param string $type @param string $customerAccount @param string $membershipStatus @param string|null $merchantCode
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/InvoiceInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/InvoiceInformation.php
Apache-2.0
public function __construct($type, $value) { $this->passengerReference = new PassengerReference($type, $value); }
PassengerAssociation constructor. @param string $type @param string|int $value
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/PassengerAssociation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/PassengerAssociation.php
Apache-2.0
public function __construct($companyCode) { $this->companyCode = $companyCode; }
MerchantInformation constructor. @param string $companyCode
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/MerchantInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/MerchantInformation.php
Apache-2.0
public function __construct($type, $value) { $this->referenceDetails = new ReferenceDetails($type, $value); }
PnrElementAssociation constructor. @param string $type @param int|string $value
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/PnrElementAssociation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/PnrElementAssociation.php
Apache-2.0
public function __construct($action = null, $indicator = null) { $this->indicator = $indicator; $this->action = $action; }
StatusInformation constructor. @param string|null $action @param string|null $indicator
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/StatusInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/StatusInformation.php
Apache-2.0
public function __construct($type, $value) { $this->phoneOrEmailType = $type; if ($type === self::TYPE_PHONE) { $this->telephoneNumberDetails = new TelephoneNumberDetails($value); } elseif ($type === self::TYPE_EMAIL) { $this->emailAddress = $value; } }
PayerPhoneOrEmail constructor. @param $type @param $value
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/PayerPhoneOrEmail.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/PayerPhoneOrEmail.php
Apache-2.0
public function __construct($payments) { foreach ($payments as $counter => $payment) { if ($counter === 0) { $this->monetaryDetails = new MonetaryDetails( $payment->amount, $payment->currency, $payment->type ); } else { $this->otherMonetaryDetails[] = new MonetaryDetails( $payment->amount, $payment->currency, $payment->type ); } } }
MonetaryInformation constructor. @param Payment[] $payments
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/MonetaryInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/MonetaryInformation.php
Apache-2.0
public function __construct($transactionCode, $doObFeeCalc = false) { $this->transactionDetails = new TransactionDetails($transactionCode); if ($doObFeeCalc) { $this->transactionDetails->issueIndicator = TransactionDetails::INDICATOR_OB_FEES_CALCULATION; } }
TransactionContext constructor. @param string $transactionCode @param bool $doObFeeCalc
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/TransactionContext.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/TransactionContext.php
Apache-2.0
protected function loadMopDetails(MopInfo $options) { $this->mopDetails = new MopDetails(); if ($this->checkAnyNotEmpty($options->fopCode, $options->fopStatus)) { $this->mopDetails->fopPNRDetails = new FopPNRDetails( $options->fopCode, $options->fopStatus ); } if (!empty($options->freeFlowText)) { $this->mopDetails->oldFopFreeflow = new OldFopFreeflow( $options->freeFlowText, $options->freeFlowEncoding ); } if (!empty($options->supplementaryData)) { $this->mopDetails->pnrSupplementaryData[] = new PnrSupplementaryData( DataAndSwitchMap::TYPE_DATA_INFORMATION, $options->supplementaryData ); } if (!empty($options->supplementarySwitches)) { $this->mopDetails->pnrSupplementaryData[] = new PnrSupplementaryData( DataAndSwitchMap::TYPE_SWITCH_INFORMATION, $options->supplementarySwitches ); } }
load Method of Payment Details @param MopInfo $options
loadMopDetails
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/MopDescription.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/MopDescription.php
Apache-2.0
private function checkAndCreateMopInformation() { if (is_null($this->paymentModule->mopInformation)) { $this->paymentModule->mopInformation = new MopInformation(); } }
Create MopInformation node if needed
checkAndCreateMopInformation
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/MopDescription.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/MopDescription.php
Apache-2.0
private function checkAndCreateMopDetailedData($fopType) { if (is_null($this->paymentModule->mopDetailedData)) { $this->paymentModule->mopDetailedData = new MopDetailedData($fopType); } }
Create MopDetailedData node if needed @param string $fopType
checkAndCreateMopDetailedData
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/MopDescription.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/MopDescription.php
Apache-2.0
public function __construct($code) { $this->code = $code; }
TransactionDetails constructor. @param string $code self::TRANS_*
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/TransactionDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/TransactionDetails.php
Apache-2.0
public function __construct(FraudScreeningOptions $options) { $this->fraudScreening = new FraudScreening($options->doFraudScreening); if (!empty($options->ipAddress)) { $this->ipAdress = new IpAdress($options->ipAddress); } if (!empty($options->phone)) { $this->payerPhoneOrEmail[] = new PayerPhoneOrEmail(PayerPhoneOrEmail::TYPE_PHONE, $options->phone); } if (!empty($options->email)) { $this->payerPhoneOrEmail[] = new PayerPhoneOrEmail(PayerPhoneOrEmail::TYPE_EMAIL, $options->email); } if ($this->checkAnyNotEmpty($options->firstName, $options->lastName)) { $this->payerName = new PayerName($options->lastName, $options->firstName); } if ($options->dateOfBirth instanceof \DateTime) { $this->payerDateOfBirth = new PayerDateOfBirth($options->dateOfBirth); } if ($this->checkAnyNotEmpty($options->idDocumentNr, $options->idDocumentType)) { $this->formOfIdDetails[] = new FormOfIdDetails($options->idDocumentNr, $options->idDocumentType); } if (!empty($options->billingAddress)) { $this->billingAddress = new BillingAddress( $options->billingAddress->addressLines, $options->billingAddress->city, $options->billingAddress->zipCode, $options->billingAddress->countryCode ); } }
FraudScreeningData constructor. @param FraudScreeningOptions $options
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/FraudScreeningData.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/FraudScreeningData.php
Apache-2.0
public function __construct($surname) { $this->surname = $surname; }
CcHolderNameDetails constructor. @param string $surname
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/CcHolderNameDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/CcHolderNameDetails.php
Apache-2.0
public function __construct($type, $customerAccount, $membershipStatus, $merchantCode = null) { parent::__construct($type); $this->customerAccount = $customerAccount; $this->membershipStatus = $membershipStatus; $this->merchantCode = $merchantCode; }
InvoiceFormOfPayment constructor. @param string $type @param string $customerAccount @param string $membershipStatus @param string|null $merchantCode
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/InvoiceFormOfPayment.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/InvoiceFormOfPayment.php
Apache-2.0
public function __construct( $veresStatus, $paresStatus, $company, $transactionsStatus, $authenticationIndicator, $tdsVersion, ) { if (false === empty($tdsVersion)) { $this->tdsVersion = $tdsVersion; } $this->authenticationDataDetails = new AuthenticationDataDetails( $veresStatus, $paresStatus, $company, $transactionsStatus, $authenticationIndicator ); }
AuthenticationData constructor. @param string|null $veresStatus @param string|null $paresStatus @param string|null $company @param string|null $transactionsStatus @param string|null $authenticationIndicator @param string|null $tdsVersion
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/AuthenticationData.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/AuthenticationData.php
Apache-2.0
public function __construct($departureDate) { if ($departureDate instanceof \DateTime) { $this->departureDate = $departureDate->format('dmy'); } }
ProductDateTimeDetails constructor. @param \DateTime $departureDate
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/ProductDateTimeDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/ProductDateTimeDetails.php
Apache-2.0
public function __construct($installmentsInfo = null) { if ($installmentsInfo instanceof InstallmentsInfo) { $this->extendedPaymentDetails = new ExtendedPaymentDetails($installmentsInfo); } }
ExtendedPaymentInfo constructor. @param InstallmentsInfo|null $installmentsInfo
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/ExtendedPaymentInfo.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/ExtendedPaymentInfo.php
Apache-2.0
public function __construct(FopCreateFopOptions $options) { if ($this->checkAnyNotEmpty($options->transactionCode, $options->obFeeCalculation)) { $this->transactionContext = new TransactionContext( $options->transactionCode, $options->obFeeCalculation ); } if ($this->checkAllNotEmpty($options->bestEffortAction, $options->bestEffortIndicator)) { $this->bestEffort[] = new BestEffort($options->bestEffortIndicator, $options->bestEffortAction); } $this->loadFopGroup($options); }
FOP_CreateFormOfPayment constructor. @param FopCreateFopOptions $options
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/CreateFormOfPayment.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/CreateFormOfPayment.php
Apache-2.0
public function __construct($type, $value) { $this->type = $type; $this->value = $value; }
PassengerReference constructor. @param string $type self::TYPE_* @param int|string $value
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/PassengerReference.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/PassengerReference.php
Apache-2.0
public function __construct($businessSemantic, \DateTime $dateTime) { $this->businessSemantic = $businessSemantic; $this->dateTime = new DateTime($dateTime); }
TransactionDateTime constructor. @param string $businessSemantic self::OPT_* @param \DateTime $dateTime
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/TransactionDateTime.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/TransactionDateTime.php
Apache-2.0
public function __construct($number, $identificationCode = null) { $this->sequenceDetails = new SequenceDetails($number, $identificationCode); }
FopSequenceNumber constructor. @param int|string $number @param string|null $identificationCode
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/FopSequenceNumber.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/FopSequenceNumber.php
Apache-2.0
public function __construct($indicator, $action) { $this->indicator = $indicator; $this->action = $action; }
StatusInformation constructor. @param string $indicator @param string $action
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Fop/CreateFormOfPayment/StatusInformation.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Fop/CreateFormOfPayment/StatusInformation.php
Apache-2.0
public function __construct($organizationId) { $this->organizationId = $organizationId; }
OrganizationDetails constructor. @param string $organizationId
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Security/OrganizationDetails.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Security/OrganizationDetails.php
Apache-2.0
public function __construct($officeId) { $this->sourceOffice = $officeId; }
OriginIdentification constructor. @param string $officeId
__construct
php
amabnl/amadeus-ws-client
src/Amadeus/Client/Struct/Security/OriginIdentification.php
https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Struct/Security/OriginIdentification.php
Apache-2.0
protected static function getMethod($helper, $name) { $method = new \ReflectionMethod($helper, $name); $method->setAccessible(true); return $method; }
Get a protected or private method from given class @param string $helper @param string $name @return \ReflectionMethod
getMethod
php
amabnl/amadeus-ws-client
tests/Amadeus/BaseTestCase.php
https://github.com/amabnl/amadeus-ws-client/blob/master/tests/Amadeus/BaseTestCase.php
Apache-2.0
protected static function getProperty($helper, $name) { $property = new \ReflectionProperty($helper, $name); $property->setAccessible(true); return $property; }
Get a protected or private property from given class @param string $helper @param string $name @return \ReflectionProperty
getProperty
php
amabnl/amadeus-ws-client
tests/Amadeus/BaseTestCase.php
https://github.com/amabnl/amadeus-ws-client/blob/master/tests/Amadeus/BaseTestCase.php
Apache-2.0
public static function assertValid($value) { if (! is_string($value) && ! is_numeric($value)) { throw new Exception\InvalidArgumentException(sprintf( 'Invalid header value type; must be a string or numeric; received %s', (is_object($value) ? get_class($value) : gettype($value)) )); } if (! self::isValid($value)) { throw new Exception\InvalidArgumentException(sprintf( '"%s" is not valid header value', $value )); } }
Assert a header value is valid. @param mixed $value Value to be tested. This method asserts it is a string or number. @throws Exception\InvalidArgumentException for invalid values
assertValid
php
zendframework/zend-diactoros
src/HeaderSecurity.php
https://github.com/zendframework/zend-diactoros/blob/master/src/HeaderSecurity.php
BSD-3-Clause
public static function assertValidName($name) { if (! is_string($name)) { throw new Exception\InvalidArgumentException(sprintf( 'Invalid header name type; expected string; received %s', (is_object($name) ? get_class($name) : gettype($name)) )); } if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/', $name)) { throw new Exception\InvalidArgumentException(sprintf( '"%s" is not valid header name', $name )); } }
Assert whether or not a header name is valid. @see http://tools.ietf.org/html/rfc7230#section-3.2 @param mixed $name @throws Exception\InvalidArgumentException
assertValidName
php
zendframework/zend-diactoros
src/HeaderSecurity.php
https://github.com/zendframework/zend-diactoros/blob/master/src/HeaderSecurity.php
BSD-3-Clause
public function __construct( $data, int $status = 200, array $headers = [], int $encodingOptions = self::DEFAULT_JSON_FLAGS ) { $this->setPayload($data); $this->encodingOptions = $encodingOptions; $json = $this->jsonEncode($data, $this->encodingOptions); $body = $this->createBodyFromJson($json); $headers = $this->injectContentType('application/json', $headers); parent::__construct($body, $status, $headers); }
Create a JSON response with the given data. Default JSON encoding is performed with the following options, which produces RFC4627-compliant JSON, capable of embedding into HTML. - JSON_HEX_TAG - JSON_HEX_APOS - JSON_HEX_AMP - JSON_HEX_QUOT - JSON_UNESCAPED_SLASHES @param mixed $data Data to convert to JSON. @param int $status Integer status code for the response; 200 by default. @param array $headers Array of headers to use at initialization. @param int $encodingOptions JSON encoding options to use. @throws Exception\InvalidArgumentException if unable to encode the $data to JSON.
__construct
php
zendframework/zend-diactoros
src/Response/JsonResponse.php
https://github.com/zendframework/zend-diactoros/blob/master/src/Response/JsonResponse.php
BSD-3-Clause
public function sampleCallback() { return __METHOD__; }
Sample callback to use with testing. @return string
sampleCallback
php
zendframework/zend-diactoros
test/CallbackStreamTest.php
https://github.com/zendframework/zend-diactoros/blob/master/test/CallbackStreamTest.php
BSD-3-Clause
public static function sampleStaticCallback() { return __METHOD__; }
Sample static callback to use with testing. @return string
sampleStaticCallback
php
zendframework/zend-diactoros
test/CallbackStreamTest.php
https://github.com/zendframework/zend-diactoros/blob/master/test/CallbackStreamTest.php
BSD-3-Clause