Documentation

Hotel extends Resource
in package
implements ResourceInterface

A Hotel object as returned by the Hotel List API.

Tags
see
ByCity::get()
see
ByGeocode::get()
see
ByHotels::get()
link
https://developers.amadeus.com/self-service/category/hotel/api-doc/hotel-list/api-reference

Interfaces, Classes, Traits and Enums

ResourceInterface

Table of Contents

$address  : object|null
$chainCode  : string|null
$distance  : object|null
$dupeId  : float|null
$geoCode  : object|null
$googlePlaceId  : string|null
$hotelId  : string|null
$iataCode  : string|null
$last_update  : string|null
$name  : string|null
$openjetAirportId  : string|null
$response  : Response|null
$subtype  : string|null
$timeZoneName  : string|null
$uicCode  : string|null
__set()  : void
__toString()  : string
fromArray()  : array<string|int, mixed>
fromObject()  : object
getAddress()  : HotelAddress|null
getChainCode()  : string|null
getDistance()  : HotelDistance|null
getDupeId()  : float|null
getGeoCode()  : GeoCode|null
getGooglePlaceId()  : string|null
getHotelId()  : string|null
getIataCode()  : string|null
getLastUpdate()  : string|null
getName()  : string|null
getOpenjetAirportId()  : string|null
getResponse()  : Response|null
getSubtype()  : string|null
getTimeZoneName()  : string|null
getUicCode()  : 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

$chainCode

private string|null $chainCode = null

$distance

private object|null $distance = null

$dupeId

private float|null $dupeId = null

$geoCode

private object|null $geoCode = null

$googlePlaceId

private string|null $googlePlaceId = null

$hotelId

private string|null $hotelId = null

$iataCode

private string|null $iataCode = null

$last_update

private string|null $last_update = null

$name

private string|null $name = null

$openjetAirportId

private string|null $openjetAirportId = null

$subtype

private string|null $subtype = null

$timeZoneName

private string|null $timeZoneName = null

$uicCode

private string|null $uicCode = 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

getChainCode()

public getChainCode() : string|null
Return values
string|null

getDupeId()

public getDupeId() : float|null
Return values
float|null

getGooglePlaceId()

public getGooglePlaceId() : string|null
Return values
string|null

getHotelId()

public getHotelId() : string|null
Return values
string|null

getIataCode()

public getIataCode() : string|null
Return values
string|null

getLastUpdate()

public getLastUpdate() : string|null
Return values
string|null

getName()

public getName() : string|null
Return values
string|null

getOpenjetAirportId()

public getOpenjetAirportId() : string|null
Return values
string|null

getSubtype()

public getSubtype() : string|null
Return values
string|null

getTimeZoneName()

public getTimeZoneName() : string|null
Return values
string|null

getUicCode()

public getUicCode() : 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
Parameters
$array :
Return values
string

Search results