| 1 | <?php |
||
| 20 | class DateRange |
||
| 21 | { |
||
| 22 | /** @var \DateTimeInterface */ |
||
| 23 | private $since; |
||
| 24 | |||
| 25 | /** @var \DateTimeInterface */ |
||
| 26 | private $till; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param \DateTimeInterface $since |
||
| 30 | * @param \DateTimeInterface $till |
||
| 31 | */ |
||
| 32 | public function __construct(\DateTimeInterface $since, \DateTimeInterface $till) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return \DateTimeInterface |
||
| 40 | */ |
||
| 41 | public function getSince(): \DateTimeInterface |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param \DateTimeInterface $since |
||
| 48 | * |
||
| 49 | * @return $this |
||
| 50 | */ |
||
| 51 | public function setSince(\DateTimeInterface $since): self |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return \DateTimeInterface |
||
| 60 | */ |
||
| 61 | public function getTill(): \DateTimeInterface |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @param \DateTimeInterface $till |
||
| 68 | * |
||
| 69 | * @return $this |
||
| 70 | */ |
||
| 71 | public function setTill(\DateTimeInterface $till): self |
||
| 77 | } |
||
| 78 |