FlightDate
extends Resource
in package
implements
ResourceInterface
A FlightDate object as returned by the Flight Cheapest Date Search API.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $departureDate : string|null
- $destination : string|null
- $links : object|null
- $origin : string|null
- $price : object|null
- $response : Response|null
- $returnDate : string|null
- $type : string|null
- __set() : void
- __toString() : string
- fromArray() : array<string|int, mixed>
- fromObject() : object
- getDepartureDate() : string|null
- getDestination() : string|null
- getLinks() : FlightDateLinks|null
- getOrigin() : string|null
- getPrice() : FlightPrice|null
- getResponse() : Response|null
- getReturnDate() : 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
$departureDate
private
string|null
$departureDate
= null
$destination
private
string|null
$destination
= null
$links
private
object|null
$links
= null
$origin
private
string|null
$origin
= null
$price
private
object|null
$price
= null
$response
private
Response|null
$response
= null
$returnDate
private
string|null
$returnDate
= 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 —getDepartureDate()
public
getDepartureDate() : string|null
Return values
string|null —getDestination()
public
getDestination() : string|null
Return values
string|null —getLinks()
public
getLinks() : FlightDateLinks|null
Return values
FlightDateLinks|null —getOrigin()
public
getOrigin() : string|null
Return values
string|null —getPrice()
public
getPrice() : FlightPrice|null
Return values
FlightPrice|null —getResponse()
public
getResponse() : Response|null
Return values
Response|null —getReturnDate()
public
getReturnDate() : 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