ReservationSettings
Reservation settings.
Store information about automatic redundancy scenarios and the time when reserves are rotting.
Table of Contents
Methods
- __construct() : mixed
- getClearPeriod() : int
- Get number of days after which the reserve is withdrawn.
- getReserveCondition() : string|null
- Get reserve condition.
- isEnableAutomaticReservation() : bool
- Checking is enabled automatic reservation.
- setClearPeriod() : void
- Set number of days after which the reserve is withdrawn.
- setReserveCondition() : void
- Set reserve condition.
Methods
__construct()
public
__construct(int $clearPeriod, string|null $reserveCondition) : mixed
Parameters
- $clearPeriod : int
- $reserveCondition : string|null
getClearPeriod()
Get number of days after which the reserve is withdrawn.
public
getClearPeriod() : int
Return values
intgetReserveCondition()
Get reserve condition.
public
getReserveCondition() : string|null
Return values
string|nullisEnableAutomaticReservation()
Checking is enabled automatic reservation.
public
isEnableAutomaticReservation() : bool
Return values
boolsetClearPeriod()
Set number of days after which the reserve is withdrawn.
public
setClearPeriod(int $value) : void
Parameters
- $value : int
setReserveCondition()
Set reserve condition.
public
setReserveCondition(string|null $value) : void
Parameters
- $value : string|null
-
constants of
Reserve Condition
ornull
if not has reserve condition.