| 1 | <?php |
||
| 10 | class TimePeriod |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $from; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $until; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * TimePeriod constructor. |
||
| 24 | * @param string $from |
||
| 25 | * @param string $until |
||
| 26 | */ |
||
| 27 | 56 | public function __construct(string $from, string $until) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 20 | public function getFrom(): string |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $from |
||
| 43 | * @return TimePeriod |
||
| 44 | */ |
||
| 45 | 2 | public function setFrom(string $from): TimePeriod |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | 20 | public function getUntil(): string |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $until |
||
| 62 | * @return TimePeriod |
||
| 63 | */ |
||
| 64 | 2 | public function setUntil(string $until): TimePeriod |
|
| 70 | } |
||
| 71 |