FlightAvailability
extends Resource
in package
implements
ResourceInterface
A FlightAvailability object as returned by the Flight Availabilities Search API.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $duration : string|null
- $id : string|null
- $instantTicketingRequired : bool|null
- $originDestinationId : string|null
- $paymentCardRequired : bool|null
- $response : Response|null
- $segments : array<string|int, mixed>|null
- $source : string|null
- $type : string|null
- __set() : void
- __toString() : string
- fromArray() : array<string|int, mixed>
- fromObject() : object
- getDuration() : string|null
- getId() : string|null
- getInstantTicketingRequired() : bool|null
- getOriginDestinationId() : string|null
- getPaymentCardRequired() : bool|null
- getResponse() : Response|null
- getSegments() : array<string|int, FlightExtendedSegment>|null
- getSource() : string|null
- getType() : string|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
$duration
private
string|null
$duration
= null
$id
private
string|null
$id
= null
$instantTicketingRequired
private
bool|null
$instantTicketingRequired
= null
$originDestinationId
private
string|null
$originDestinationId
= null
$paymentCardRequired
private
bool|null
$paymentCardRequired
= null
$response
private
Response|null
$response
= null
$segments
private
array<string|int, mixed>|null
$segments
= null
$source
private
string|null
$source
= null
$type
private
string|null
$type
= 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 —getDuration()
public
getDuration() : string|null
Return values
string|null —getId()
public
getId() : string|null
Return values
string|null —getInstantTicketingRequired()
public
getInstantTicketingRequired() : bool|null
Return values
bool|null —getOriginDestinationId()
public
getOriginDestinationId() : string|null
Return values
string|null —getPaymentCardRequired()
public
getPaymentCardRequired() : bool|null
Return values
bool|null —getResponse()
public
getResponse() : Response|null
Return values
Response|null —getSegments()
public
getSegments() : array<string|int, FlightExtendedSegment>|null
Return values
array<string|int, FlightExtendedSegment>|null —getSource()
public
getSource() : string|null
Return values
string|null —getType()
public
getType() : string|null
Return values
string|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