Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
reservationsettings.php
1
<?php
2
3
namespace
Bitrix\Sale\Reservation\Configuration
;
4
9
class
ReservationSettings
10
{
16
private
int
$clearPeriod;
17
24
private
?
string
$reserveCondition;
25
30
public
function
__construct
(
31
int
$clearPeriod,
32
?
string
$reserveCondition
33
)
34
{
35
$this->
setClearPeriod
($clearPeriod);
36
$this->
setReserveCondition
($reserveCondition);
37
}
38
46
public
function
setClearPeriod
(
int
$value): void
47
{
48
$this->clearPeriod = $value;
49
}
50
56
public
function
getClearPeriod
(): int
57
{
58
return
$this->clearPeriod;
59
}
60
68
public
function
setReserveCondition
(?
string
$value): void
69
{
70
if
(isset($value))
71
{
72
ReserveCondition::validate
($value);
73
}
74
$this->reserveCondition = $value;
75
}
76
82
public
function
getReserveCondition
(): ?string
83
{
84
return
$this->reserveCondition;
85
}
86
92
public
function
isEnableAutomaticReservation
(): bool
93
{
94
return
$this->
getReserveCondition
() !==
null
;
95
}
96
}
Bitrix\Sale\Reservation\Configuration\ReservationSettings
Definition
reservationsettings.php:10
Bitrix\Sale\Reservation\Configuration\ReservationSettings\isEnableAutomaticReservation
isEnableAutomaticReservation()
Definition
reservationsettings.php:92
Bitrix\Sale\Reservation\Configuration\ReservationSettings\getClearPeriod
getClearPeriod()
Definition
reservationsettings.php:56
Bitrix\Sale\Reservation\Configuration\ReservationSettings\setReserveCondition
setReserveCondition(?string $value)
Definition
reservationsettings.php:68
Bitrix\Sale\Reservation\Configuration\ReservationSettings\setClearPeriod
setClearPeriod(int $value)
Definition
reservationsettings.php:46
Bitrix\Sale\Reservation\Configuration\ReservationSettings\getReserveCondition
getReserveCondition()
Definition
reservationsettings.php:82
Bitrix\Sale\Reservation\Configuration\ReservationSettings\__construct
__construct(int $clearPeriod, ?string $reserveCondition)
Definition
reservationsettings.php:30
Bitrix\Sale\Reservation\Configuration\ReserveCondition\validate
static validate(string $value)
Definition
reservecondition.php:30
Bitrix\Sale\Reservation\Configuration
Definition
reservationsettings.php:3
modules
sale
lib
reservation
configuration
reservationsettings.php
Создано системой
1.10.0