HotelNameAutocomplete
extends Resource
in package
implements
ResourceInterface
A HotelNameAutocomplete object as returned by the Hotel Name Autocomplete API.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $address : object|null
- $geoCode : object|null
- $hotelIds : array<string|int, mixed>|null
- $iataCode : string|null
- $id : int|null
- $name : string|null
- $relevance : int|null
- $response : Response|null
- $subType : string|null
- $type : string|null
- __set() : void
- __toString() : string
- fromArray() : array<string|int, mixed>
- fromObject() : object
- getAddress() : HotelAddress|null
- getGeoCode() : GeoCode|null
- getHotelIds() : array<string|int, mixed>|null
- getIataCode() : string|null
- getId() : int|null
- getName() : string|null
- getRelevance() : int|null
- getResponse() : Response|null
- getSubType() : 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
$geoCode
private
object|null
$geoCode
= null
$hotelIds
private
array<string|int, mixed>|null
$hotelIds
= null
$iataCode
private
string|null
$iataCode
= null
$id
private
int|null
$id
= null
$name
private
string|null
$name
= null
$relevance
private
int|null
$relevance
= null
$response
private
Response|null
$response
= null
$subType
private
string|null
$subType
= 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() : HotelAddress|null
Return values
HotelAddress|null —getGeoCode()
public
getGeoCode() : GeoCode|null
Return values
GeoCode|null —getHotelIds()
public
getHotelIds() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null —getIataCode()
public
getIataCode() : string|null
Return values
string|null —getId()
public
getId() : int|null
Return values
int|null —getName()
public
getName() : string|null
Return values
string|null —getRelevance()
public
getRelevance() : int|null
Return values
int|null —getResponse()
public
getResponse() : Response|null
Return values
Response|null —getSubType()
public
getSubType() : 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