Location
extends Resource
in package
implements
ResourceInterface
A Location object as returned by the Airport and City Search API, Airport Nearest Relevant API and Travel Recommendations API .
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $address : object|null
- $analytics : object|null
- $category : string|null
- $detailedName : string|null
- $distance : object|null
- $geoCode : object|null
- $iataCode : string|null
- $id : string|null
- $name : string|null
- $rank : string|null
- $relevance : float|null
- $response : Response|null
- $self : object|null
- $subType : string|null
- $tags : string|null
- $timeZoneOffset : string|null
- $type : string|null
- __set() : void
- __toString() : string
- fromArray() : array<string|int, mixed>
- fromObject() : object
- getAddress() : LocationAddress|null
- getAnalytics() : LocationAnalytics|null
- getCategory() : string|null
- getDetailedName() : string|null
- getDistance() : LocationDistance|null
- getGeoCode() : GeoCode|null
- getIataCode() : string|null
- getId() : string|null
- getName() : string|null
- getRank() : string|null
- getRelevance() : float|null
- getResponse() : Response|null
- getSelf() : Links|null
- getSubType() : string|null
- getTags() : string|null
- getTimeZoneOffset() : 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
$address
private
object|null
$address
= null
$analytics
private
object|null
$analytics
= null
$category
private
string|null
$category
= null
$detailedName
private
string|null
$detailedName
= null
$distance
private
object|null
$distance
= null
$geoCode
private
object|null
$geoCode
= null
$iataCode
private
string|null
$iataCode
= null
$id
private
string|null
$id
= null
$name
private
string|null
$name
= null
$rank
private
string|null
$rank
= null
$relevance
private
float|null
$relevance
= null
$response
private
Response|null
$response
= null
$self
private
object|null
$self
= null
$subType
private
string|null
$subType
= null
$tags
private
string|null
$tags
= null
$timeZoneOffset
private
string|null
$timeZoneOffset
= 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 —getAddress()
public
getAddress() : LocationAddress|null
Return values
LocationAddress|null —getAnalytics()
public
getAnalytics() : LocationAnalytics|null
Return values
LocationAnalytics|null —getCategory()
public
getCategory() : string|null
Return values
string|null —getDetailedName()
public
getDetailedName() : string|null
Return values
string|null —getDistance()
public
getDistance() : LocationDistance|null
Return values
LocationDistance|null —getGeoCode()
public
getGeoCode() : GeoCode|null
Return values
GeoCode|null —getIataCode()
public
getIataCode() : string|null
Return values
string|null —getId()
public
getId() : string|null
Return values
string|null —getName()
public
getName() : string|null
Return values
string|null —getRank()
public
getRank() : string|null
Return values
string|null —getRelevance()
public
getRelevance() : float|null
Return values
float|null —getResponse()
public
getResponse() : Response|null
Return values
Response|null —getSelf()
public
getSelf() : Links|null
Return values
Links|null —getSubType()
public
getSubType() : string|null
Return values
string|null —getTags()
public
getTags() : string|null
Return values
string|null —getTimeZoneOffset()
public
getTimeZoneOffset() : 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