Conditions | 4 |
Paths | 8 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function __construct($startDate, $endDate, $interval, $borderInclusion = self::INCLUDE_BOTH) |
||
24 | { |
||
25 | $this->borderInclusion = $borderInclusion; |
||
26 | $this->startDate = is_string($startDate) ? new DateTime($startDate) : $startDate; |
||
27 | $clonedStart = clone $this->startDate; |
||
28 | $this->endDate = is_string($endDate) ? $clonedStart->modify($endDate) : $endDate; |
||
29 | $this->interval = is_string($interval) ? DateInterval::createFromDateString($interval) : $interval; |
||
30 | } |
||
31 | |||
69 |