ReservedRoom
in package
Table of Contents
- $adults : int
- $bookingId : int
- $children : int
- $guestName : string
- $id : int
- $rateId : int
- $reservedServices : array<string|int, ReservedService>
- $roomId : int
- $status : string
- $uid : string
- __construct() : mixed
- calcRoomPrice() : float
- create() : ReservedRoom
- getAdults() : int
- getBookingId() : int
- getChildren() : int
- getGuestName() : string
- getId() : int
- getPriceBreakdown() : array<string|int, mixed>
- getRateId() : int
- getReservedServices() : array<string|int, ReservedService>
- getRoomId() : int
- getRoomPriceBreakdown() : array<string|int, mixed>
- getRoomTypeId() : int
- Retrieve room type id of reserved room
- getStatus() : string
- getUid() : string
- setBookingId() : mixed
- setUid() : mixed
- getFeesBreakdown() : mixed
- getFeeTaxesBreakdown() : mixed
- getRoomBreakdown() : array<string|int, mixed>
- getRoomTaxesBreakdown() : mixed
- getServicesBreakdown() : array<string|int, mixed>
- getServiceTaxesBreakdown() : mixed
Properties
$adults
private
int
$adults
$bookingId
private
int
$bookingId
$children
private
int
$children
$guestName
private
string
$guestName
$id
private
int
$id
$rateId
private
int
$rateId
$reservedServices
private
array<string|int, ReservedService>
$reservedServices
$roomId
private
int
$roomId
$status
private
string
$status
$uid
private
string
$uid
Methods
__construct()
public
__construct(array<string|int, mixed> $atts) : mixed
Parameters
- $atts : array<string|int, mixed>
-
Array of atts
Return values
mixed —calcRoomPrice()
public
calcRoomPrice(DateTime $checkInDate, DateTime $checkOutDate) : float
Parameters
- $checkInDate : DateTime
- $checkOutDate : DateTime
Return values
float —create()
public
static create(array<string|int, mixed> $atts) : ReservedRoom
Parameters
- $atts : array<string|int, mixed>
-
Array of atts
Return values
ReservedRoom —getAdults()
public
getAdults() : int
Return values
int —getBookingId()
public
getBookingId() : int
Return values
int —getChildren()
public
getChildren() : int
Return values
int —getGuestName()
public
getGuestName() : string
Return values
string —getId()
public
getId() : int
Return values
int —getPriceBreakdown()
public
getPriceBreakdown(DateTime $checkInDate, DateTime $checkOutDate[, AbstractCoupon|null $coupon = null ][, string|null $language = null ]) : array<string|int, mixed>
Parameters
- $checkInDate : DateTime
- $checkOutDate : DateTime
- $coupon : AbstractCoupon|null = null
- $language : string|null = null
Return values
array<string|int, mixed> —getRateId()
public
getRateId() : int
Return values
int —getReservedServices()
public
getReservedServices() : array<string|int, ReservedService>
Return values
array<string|int, ReservedService> —getRoomId()
public
getRoomId() : int
Return values
int —getRoomPriceBreakdown()
public
getRoomPriceBreakdown(DateTime $checkInDate, DateTime $checkOutDate) : array<string|int, mixed>
Parameters
- $checkInDate : DateTime
- $checkOutDate : DateTime
Return values
array<string|int, mixed> —[%yyyy-mm-dd% => %price%]
getRoomTypeId()
Retrieve room type id of reserved room
public
getRoomTypeId() : int
Return values
int —getStatus()
public
getStatus() : string
Return values
string —getUid()
public
getUid() : string
Return values
string —setBookingId()
public
setBookingId(int $bookingId) : mixed
Parameters
- $bookingId : int
Return values
mixed —setUid()
public
setUid(mixed $uid) : mixed
Parameters
- $uid : mixed
Return values
mixed —getFeesBreakdown()
private
getFeesBreakdown(mixed $checkInDate, mixed $checkOutDate, mixed $roomPrice) : mixed
Parameters
- $checkInDate : mixed
- $checkOutDate : mixed
- $roomPrice : mixed
Return values
mixed —getFeeTaxesBreakdown()
private
getFeeTaxesBreakdown(mixed $feesPrice) : mixed
Parameters
- $feesPrice : mixed
Return values
mixed —getRoomBreakdown()
private
getRoomBreakdown(DateTime $checkInDate, DateTime $checkOutDate, AbstractCoupon|null $coupon, string|null $language) : array<string|int, mixed>
Parameters
- $checkInDate : DateTime
- $checkOutDate : DateTime
- $coupon : AbstractCoupon|null
- $language : string|null
Return values
array<string|int, mixed> —getRoomTaxesBreakdown()
private
getRoomTaxesBreakdown(mixed $checkInDate, mixed $checkOutDate, mixed $roomPrice) : mixed
Parameters
- $checkInDate : mixed
- $checkOutDate : mixed
- $roomPrice : mixed
Return values
mixed —getServicesBreakdown()
private
getServicesBreakdown( $checkInDate, $checkOutDate, $language) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —getServiceTaxesBreakdown()
private
getServiceTaxesBreakdown(mixed $servicesPrice) : mixed
Parameters
- $servicesPrice : mixed