FlightOffer
extends Resource
in package
implements
ResourceInterface
A FlightOffer object as returned by the Flight Offers Search API, Flight Choice Prediction API.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $choiceProbability : string|null
- $disablePricing : bool|null
- $fareRules : object|null
- $id : string|null
- $instantTicketingRequired : bool|null
- $itineraries : array<string|int, mixed>|null
- $lastTicketingDate : string|null
- $nonHomogeneous : bool|null
- $numberOfBookableSeats : int|null
- $oneWay : bool|null
- $paymentCardRequired : bool|null
- $price : object|null
- $pricingOptions : object|null
- $response : Response|null
- $source : string|null
- $travelerPricings : array<string|int, mixed>|null
- $type : string|null
- $validatingAirlineCodes : array<string|int, mixed>|null
- __set() : void
- __toString() : string
- fromArray() : array<string|int, mixed>
- fromObject() : object
- getChoiceProbability() : string|null
- getDisablePricing() : bool|null
- getFareRules() : FareRules|null
- getId() : string|null
- getInstantTicketingRequired() : bool|null
- getItineraries() : array<string|int, FlightItineraries>|null
- getLastTicketingDate() : string|null
- getNonHomogeneous() : bool|null
- getNumberOfBookableSeats() : int|null
- getOneWay() : bool|null
- getPaymentCardRequired() : bool|null
- getPrice() : FlightPrice|null
- getPricingOptions() : FlightPricingOptions|null
- getResponse() : Response|null
- getSource() : string|null
- getTravelerPricings() : array<string|int, TravelerPricing>|null
- getType() : string|null
- getValidatingAirlineCodes() : array<string|int, mixed>|null
- toArray() : array<string|int, mixed>
- For fitting into the Laravel framework Transform the resource into an array.
- toResourceArray() : array<string|int, mixed>
- toResourceObject() : object
- toString() : string
Properties
$choiceProbability
private
string|null
$choiceProbability
= null
$disablePricing
private
bool|null
$disablePricing
= null
$fareRules
private
object|null
$fareRules
= null
$id
private
string|null
$id
= null
$instantTicketingRequired
private
bool|null
$instantTicketingRequired
= null
$itineraries
private
array<string|int, mixed>|null
$itineraries
= null
$lastTicketingDate
private
string|null
$lastTicketingDate
= null
$nonHomogeneous
private
bool|null
$nonHomogeneous
= null
$numberOfBookableSeats
private
int|null
$numberOfBookableSeats
= null
$oneWay
private
bool|null
$oneWay
= null
$paymentCardRequired
private
bool|null
$paymentCardRequired
= null
$price
private
object|null
$price
= null
$pricingOptions
private
object|null
$pricingOptions
= null
$response
private
Response|null
$response
= null
$source
private
string|null
$source
= null
$travelerPricings
private
array<string|int, mixed>|null
$travelerPricings
= null
$type
private
string|null
$type
= null
$validatingAirlineCodes
private
array<string|int, mixed>|null
$validatingAirlineCodes
= null
Methods
__set()
public
__set(mixed $name, mixed $value) : void
Parameters
- $name : mixed
- $value : mixed
Return values
void —__toString()
public
__toString() : string
Return values
string —fromArray()
public
static fromArray(Response $response, string $class) : array<string|int, mixed>
Parameters
- $response : Response
- $class : string
Return values
array<string|int, mixed> —fromObject()
public
static fromObject(Response $response, string $class) : object
Parameters
- $response : Response
- $class : string
Return values
object —getChoiceProbability()
public
getChoiceProbability() : string|null
Return values
string|null —getDisablePricing()
public
getDisablePricing() : bool|null
Return values
bool|null —getFareRules()
public
getFareRules() : FareRules|null
Return values
FareRules|null —getId()
public
getId() : string|null
Return values
string|null —getInstantTicketingRequired()
public
getInstantTicketingRequired() : bool|null
Return values
bool|null —getItineraries()
public
getItineraries() : array<string|int, FlightItineraries>|null
Return values
array<string|int, FlightItineraries>|null —getLastTicketingDate()
public
getLastTicketingDate() : string|null
Return values
string|null —getNonHomogeneous()
public
getNonHomogeneous() : bool|null
Return values
bool|null —getNumberOfBookableSeats()
public
getNumberOfBookableSeats() : int|null
Return values
int|null —getOneWay()
public
getOneWay() : bool|null
Return values
bool|null —getPaymentCardRequired()
public
getPaymentCardRequired() : bool|null
Return values
bool|null —getPrice()
public
getPrice() : FlightPrice|null
Return values
FlightPrice|null —getPricingOptions()
public
getPricingOptions() : FlightPricingOptions|null
Return values
FlightPricingOptions|null —getResponse()
public
getResponse() : Response|null
Return values
Response|null —getSource()
public
getSource() : string|null
Return values
string|null —getTravelerPricings()
public
getTravelerPricings() : array<string|int, TravelerPricing>|null
Return values
array<string|int, TravelerPricing>|null —getType()
public
getType() : string|null
Return values
string|null —getValidatingAirlineCodes()
public
getValidatingAirlineCodes() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null —toArray()
For fitting into the Laravel framework Transform the resource into an array.
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —toResourceArray()
public
static toResourceArray(array<string|int, mixed> $array, string $class) : array<string|int, mixed>
Parameters
- $array : array<string|int, mixed>
- $class : string
Return values
array<string|int, mixed> —toResourceObject()
public
static toResourceObject(object $object, string $class) : object
Parameters
- $object : object
- $class : string
Return values
object —toString()
public
static toString( $array) : string