CheckInRule
extends AbstractRule
in package
Table of Contents
- $roomTypeIds : array<string|int, int>
- $seasonIds : array<string|int, int>
- $checkInDays : mixed
- __construct() : mixed
- getDays() : array<string|int, int>
- getRoomTypeIds() : array<string|int, int>
- getSeasonIds() : array<string|int, int>
- isFor() : bool
- isForAllRoomTypes() : bool
- isForAllSeasons() : bool
- isForDate() : bool
- isForRoomType() : bool
- toArray() : array<string|int, mixed>
- verify() : mixed
Properties
$roomTypeIds
protected
array<string|int, int>
$roomTypeIds
= array()
Tags
$seasonIds
protected
array<string|int, int>
$seasonIds
= array()
Tags
$checkInDays
private
mixed
$checkInDays
Methods
__construct()
public
__construct(mixed $atts) : mixed
Parameters
- $atts : mixed
-
@param array $atts['season_ids'] @param array $atts['room_type_ids']
Return values
mixed —getDays()
public
getDays() : array<string|int, int>
Return values
array<string|int, int> —getRoomTypeIds()
public
getRoomTypeIds() : array<string|int, int>
Tags
Return values
array<string|int, int> —getSeasonIds()
public
getSeasonIds() : array<string|int, int>
Tags
Return values
array<string|int, int> —isFor()
public
isFor(DateTime $date, int $roomTypeId) : bool
Parameters
- $date : DateTime
- $roomTypeId : int
Tags
Return values
bool —isForAllRoomTypes()
public
isForAllRoomTypes() : bool
Tags
Return values
bool —isForAllSeasons()
public
isForAllSeasons() : bool
Tags
Return values
bool —isForDate()
public
isForDate(DateTime $date) : bool
Parameters
- $date : DateTime
Tags
Return values
bool —isForRoomType()
public
isForRoomType(int $roomTypeId) : bool
Parameters
- $roomTypeId : int
Tags
Return values
bool —toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —verify()
public
verify(DateTime $checkInDate, DateTime $checkOutDate, int $roomTypeId) : mixed
Parameters
- $checkInDate : DateTime
- $checkOutDate : DateTime
- $roomTypeId : int