ReservedService
extends Service
in package
Table of Contents
- $description : string
- $id : int
- $isAutoLimit : mixed
- $maxQuantity : int|string
- $minQuantity : mixed
- $originalId : int
- $periodicity : string
- $price : float
- $quantity : mixed
- $repeat : string
- $title : string
- $adults : int
- calcPrice() : float
- create() : ReservedService|null
- generatePriceDetailsString() : string
- getAdults() : int
- getDescription() : string
- getId() : int
- getMaxQuantity() : int|string
- getMaxQuantityNumber() : int
- getMinQuantity() : mixed
- getOriginalId() : int
- getPeriodicity() : string
- getPrice() : float
- getPriceBreakdown() : array<string|int, mixed>
- getPriceHTML() : string
- getPriceWithConditions() : string
- getQuantity() : mixed
- getRepeatability() : string
- getTitle() : string
- isAutoLimit() : mixed
- isFlexiblePay() : mixed
- isFree() : bool
- isPayPerAdult() : bool
- isPayPerNight() : bool
- isUnlimited() : mixed
- __construct() : mixed
Properties
$description
protected
string
$description
$id
protected
int
$id
$isAutoLimit
protected
mixed
$isAutoLimit
$maxQuantity
protected
int|string
$maxQuantity
$minQuantity
protected
mixed
$minQuantity
$originalId
protected
int
$originalId
$periodicity
protected
string
$periodicity
$price
protected
float
$price
$quantity
protected
mixed
$quantity
$repeat
protected
string
$repeat
$title
protected
string
$title
$adults
private
int
$adults
Methods
calcPrice()
public
calcPrice(DateTime $checkInDate, DateTime $checkOutDate) : float
Parameters
- $checkInDate : DateTime
- $checkOutDate : DateTime
Return values
float —create()
public
static create(array<string|int, mixed> $atts) : ReservedService|null
Parameters
- $atts : array<string|int, mixed>
Return values
ReservedService|null —generatePriceDetailsString()
public
generatePriceDetailsString(DateTime $checkInDate, DateTime $checkOutDate) : string
Parameters
- $checkInDate : DateTime
- $checkOutDate : DateTime
Tags
Return values
string —getAdults()
public
getAdults() : int
Return values
int —getDescription()
public
getDescription() : string
Return values
string —getId()
public
getId() : int
Return values
int —getMaxQuantity()
public
getMaxQuantity() : int|string
Return values
int|string —getMaxQuantityNumber()
public
getMaxQuantityNumber() : int
Return values
int —getMinQuantity()
public
getMinQuantity() : mixed
Return values
mixed —getOriginalId()
public
getOriginalId() : int
Return values
int —getPeriodicity()
public
getPeriodicity() : string
Return values
string —getPrice()
public
getPrice() : float
Return values
float —getPriceBreakdown()
public
getPriceBreakdown(DateTime $checkInDate, DateTime $checkOutDate[, mixed $language = null ]) : array<string|int, mixed>
Parameters
- $checkInDate : DateTime
- $checkOutDate : DateTime
- $language : mixed = null
Return values
array<string|int, mixed> —getPriceHTML()
public
getPriceHTML([bool $literalFree = true ]) : string
Parameters
- $literalFree : bool = true
Return values
string —getPriceWithConditions()
public
getPriceWithConditions([bool $repeatability = true ][, bool $periodicity = true ][, bool $literalFree = true ]) : string
Parameters
- $repeatability : bool = true
-
Whether to show conditions of repeatedness. Default TRUE.*
- $periodicity : bool = true
-
Whether to show conditions of periodicity. Default TRUE.
- $literalFree : bool = true
-
Whether to replace 0 price to free label. Default TRUE.
Return values
string —getQuantity()
public
getQuantity() : mixed
Return values
mixed —getRepeatability()
public
getRepeatability() : string
Return values
string —getTitle()
public
getTitle() : string
Return values
string —isAutoLimit()
public
isAutoLimit() : mixed
Return values
mixed —isFlexiblePay()
public
isFlexiblePay() : mixed
Return values
mixed —isFree()
public
isFree() : bool
Return values
bool —isPayPerAdult()
public
isPayPerAdult() : bool
Return values
bool —isPayPerNight()
public
isPayPerNight() : bool
Return values
bool —isUnlimited()
public
isUnlimited() : mixed
Return values
mixed —__construct()
protected
__construct(array<string|int, mixed> $atts) : mixed
Parameters
- $atts : array<string|int, mixed>