HotelOffers
extends Resource
in package
implements
ResourceInterface
A HotelOffers object as returned by the Hotel Search API.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $available : bool|null
- $hotel : object|null
- $offers : array<string|int, mixed>|null
- $response : Response|null
- $self : string|null
- $type : string|null
- __set() : void
- __toString() : string
- fromArray() : array<string|int, mixed>
- fromObject() : object
- getAvailable() : bool|null
- getHotel() : HotelContent|null
- getOffers() : array<string|int, HotelOffer>|null
- getResponse() : Response|null
- getSelf() : 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
$available
private
bool|null
$available
= null
$hotel
private
object|null
$hotel
= null
$offers
private
array<string|int, mixed>|null
$offers
= null
$response
private
Response|null
$response
= null
$self
private
string|null
$self
= 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 —getAvailable()
public
getAvailable() : bool|null
Return values
bool|null —getHotel()
public
getHotel() : HotelContent|null
Return values
HotelContent|null —getOffers()
public
getOffers() : array<string|int, HotelOffer>|null
Return values
array<string|int, HotelOffer>|null —getResponse()
public
getResponse() : Response|null
Return values
Response|null —getSelf()
public
getSelf() : 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