Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | final class FiniteDateRangeProvider implements DateRangeProvider |
||
22 | { |
||
23 | /** |
||
24 | * @var DateTimeInterface |
||
25 | */ |
||
26 | private $startDate; |
||
27 | |||
28 | /** |
||
29 | * @var DateTimeInterface |
||
30 | */ |
||
31 | private $endDate; |
||
32 | |||
33 | /** |
||
34 | * @param DateTimeInterface $startDate |
||
35 | * @param DateTimeInterface $endDate |
||
36 | */ |
||
37 | 1 | public function __construct(DateTimeInterface $startDate, DateTimeInterface $endDate) |
|
38 | { |
||
39 | 1 | $this->startDate = $startDate; |
|
40 | 1 | $this->endDate = $endDate; |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 1 | public function getDateRange(): DateRangeInterface |
|
49 | } |
||
50 | } |
||
51 |