Documentation

HotelSentiment extends Resource
in package
implements ResourceInterface

A HotelSentiment object as returned by the Hotel Ratings API.

Tags
see
HotelSentiments::get()
link
https://developers.amadeus.com/self-service/category/hotel/api-doc/hotel-ratings/api-reference

Interfaces, Classes, Traits and Enums

ResourceInterface

Table of Contents

$hotelId  : string|null
$numberOfRatings  : int|null
$numberOfReviews  : int|null
$overallRating  : int|null
$response  : Response|null
$sentiments  : object|null
$type  : string|null
__set()  : void
__toString()  : string
fromArray()  : array<string|int, mixed>
fromObject()  : object
getHotelId()  : string|null
getNumberOfRatings()  : int|null
getNumberOfReviews()  : int|null
getOverallRating()  : int|null
getResponse()  : Response|null
getSentiments()  : HotelSentimentDetails|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

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

getHotelId()

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

getNumberOfRatings()

public getNumberOfRatings() : int|null
Return values
int|null

getNumberOfReviews()

public getNumberOfReviews() : int|null
Return values
int|null

getOverallRating()

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

Search results