BufferRulesList extends AbstractRulesList
in package

Tags
since
3.9

Table of Contents

$rules  : array<string|int, AbstractRule>
__construct()  : mixed
create()  : static
findActualCombinedRule()  : AbstractRule
findActualRule()  : AbstractRule|null
Find the rule that suits the date and room type ID.
findAllSeasonsRule()  : AbstractRule|null
hasRules()  : bool
toArray()  : array<string|int, mixed>
verify()  : bool
combineRules()  : BufferDaysRule|null

Properties

$rules

protected array<string|int, AbstractRule> $rules = array()
Tags
since
3.9

Methods

__construct()

public __construct(array<string|int, AbstractRule$rules) : mixed
Parameters
$rules : array<string|int, AbstractRule>
Tags
since
3.9
Return values
mixed

create()

public static create(array<string|int, mixed> $rules) : static
Parameters
$rules : array<string|int, mixed>
Tags
since
3.9
Return values
static

findActualCombinedRule()

public findActualCombinedRule(DateTime $date) : AbstractRule
Parameters
$date : DateTime
Tags
since
3.9
Return values
AbstractRule

findActualRule()

Find the rule that suits the date and room type ID.

public findActualRule(DateTime $date, int $roomTypeId) : AbstractRule|null
Parameters
$date : DateTime
$roomTypeId : int

Optional.

Tags
since
1.0
Return values
AbstractRule|null

findAllSeasonsRule()

public findAllSeasonsRule(int $roomTypeId) : AbstractRule|null
Parameters
$roomTypeId : int

Optional.

Tags
since
3.9
Return values
AbstractRule|null

hasRules()

public hasRules() : bool
Tags
since
3.9
Return values
bool

toArray()

public toArray() : array<string|int, mixed>
Tags
since
3.9
Return values
array<string|int, mixed>

verify()

public verify(DateTime $checkInDate, DateTime $checkOutDate, int $roomTypeId) : bool
Parameters
$checkInDate : DateTime
$checkOutDate : DateTime
$roomTypeId : int

Optional.

Tags
since
3.9
Return values
bool

Search results