1 | <?php |
||
9 | class TimePeriod |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $from; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $until; |
||
20 | |||
21 | /** |
||
22 | * TimePeriod constructor. |
||
23 | * @param string $from |
||
24 | * @param string $until |
||
25 | */ |
||
26 | 56 | public function __construct(string $from, string $until) |
|
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | 20 | public function getFrom(): string |
|
39 | |||
40 | /** |
||
41 | * @param string $from |
||
42 | * @return TimePeriod |
||
43 | */ |
||
44 | 2 | public function setFrom(string $from): TimePeriod |
|
45 | { |
||
46 | 2 | $this->from = $from; |
|
47 | |||
48 | 2 | return $this; |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 20 | public function getUntil(): string |
|
58 | |||
59 | /** |
||
60 | * @param string $until |
||
61 | * @return TimePeriod |
||
62 | */ |
||
63 | 2 | public function setUntil(string $until): TimePeriod |
|
69 | } |
||
70 |