Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
range.php
1<?php
2
4
5class Range
6{
8 protected ?int $from = null;
9
11 protected ?int $to = null;
12
14 protected ?array $weekdays = null;
15
16 public function getFrom(): ?int
17 {
18 return $this->from;
19 }
20
21 public function setFrom(int $from): self
22 {
23 $this->from = $from;
24
25 return $this;
26 }
27
28 public function getTo(): ?int
29 {
30 return $this->to;
31 }
32
33 public function setTo(int $to): self
34 {
35 $this->to = $to;
36
37 return $this;
38 }
39
40 public function getWeekdays(): ?array
41 {
42 return $this->weekdays;
43 }
44
45 public function setWeekdays(array $weekdays): self
46 {
47 $this->weekdays = $weekdays;
48
49 return $this;
50 }
51}