Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
reservationsettings.php
1<?php
2
4
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 {
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}
__construct(int $clearPeriod, ?string $reserveCondition)