ReservationRequest
in package
Tags
Table of Contents
- $custom : mixed
- $defaults : mixed
- getAdults() : int|string
- getCheckInDate() : null|DateTime
- getCheckOutDate() : null|DateTime
- getChildren() : int|string
- getNightsCount() : int
- getParameter() : mixed
- getParameters() : mixed
- getPricingStrategy() : string
- resetDefaults() : self
- setupParameter() : mixed
- setupParameters() : mixed
- setupSearchParameters() : self
Properties
$custom
protected
mixed
$custom
= array()
$defaults
protected
mixed
$defaults
= array(
'adults' => '',
// "" or integer number
'children' => '',
// "" or integer number
'check_in_date' => null,
// null or DateTime object
'check_out_date' => null,
// null or DateTime object
'nights_count' => -1,
// -1, 0 or natural number
'pricing_strategy' => 'default',
)
Methods
getAdults()
public
getAdults() : int|string
Return values
int|string —Adults count or empty string "".
getCheckInDate()
public
getCheckInDate() : null|DateTime
Return values
null|DateTime —getCheckOutDate()
public
getCheckOutDate() : null|DateTime
Return values
null|DateTime —getChildren()
public
getChildren() : int|string
Return values
int|string —Children count or empty string "".
getNightsCount()
public
getNightsCount() : int
Return values
int —[-1; oo)
getParameter()
public
getParameter(mixed $parameter) : mixed
Parameters
- $parameter : mixed
Return values
mixed —getParameters()
public
getParameters() : mixed
Return values
mixed —getPricingStrategy()
public
getPricingStrategy() : string
Return values
string —"default"|"base-price"
resetDefaults()
public
resetDefaults([array<string|int, string> $parameters = array() ]) : self
Parameters
- $parameters : array<string|int, string> = array()
-
The list of parameters to reset.
Return values
self —setupParameter()
public
setupParameter(mixed $parameter, mixed $value) : mixed
Parameters
- $parameter : mixed
- $value : mixed
Return values
mixed —setupParameters()
public
setupParameters(array<string|int, mixed> $parameters) : mixed
Parameters
- $parameters : array<string|int, mixed>
-
[%parameter name% => %value%]
Return values
mixed —setupSearchParameters()
public
setupSearchParameters() : self