RulesChecker
in package
implements
RuleVerifyInterface
Interfaces, Classes and Traits
Table of Contents
- $bufferRules : BufferRulesList
- $customRules : CustomRules
- $reservationRules : ReservationRules
- __construct() : mixed
- bufferRules() : BufferRulesList
- customRules() : CustomRules
- getData() : array<string|int, mixed>
- reservationRules() : ReservationRules
- verify() : bool
Properties
$bufferRules
protected
BufferRulesList
$bufferRules
Tags
$customRules
protected
CustomRules
$customRules
$reservationRules
protected
ReservationRules
$reservationRules
Methods
__construct()
public
__construct(ReservationRules $reservationRules, CustomRules $customRules, BufferRulesList $bufferRules) : mixed
Parameters
- $reservationRules : ReservationRules
- $customRules : CustomRules
- $bufferRules : BufferRulesList
Tags
Return values
mixed —bufferRules()
public
bufferRules() : BufferRulesList
Tags
Return values
BufferRulesList —customRules()
public
customRules() : CustomRules
Return values
CustomRules —getData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed> —reservationRules()
public
reservationRules() : ReservationRules
Return values
ReservationRules —verify()
public
verify(DateTime $checkInDate, DateTime $checkOutDate, int $roomTypeId) : bool
Parameters
- $checkInDate : DateTime
- $checkOutDate : DateTime
- $roomTypeId : int