Closed someniatko closed 1 year ago
I suggest Interval should have the following methods, like in LocalDateRange:
Interval
LocalDateRange
contains(Instant): bool
intersectsWith(Interval): bool
getIntersectionWith(Interval): Interval
of(Instant, Instant): self
and nice to haves (also contained in the LocalDateRange):
isEqualTo(Interval): bool
toNativeDatePeriod(): \DatePeriod
I suggest
Interval
should have the following methods, like inLocalDateRange
:contains(Instant): bool
intersectsWith(Interval): bool
getIntersectionWith(Interval): Interval
of(Instant, Instant): self
- for consistency with other classesand nice to haves (also contained in the
LocalDateRange
):isEqualTo(Interval): bool
toNativeDatePeriod(): \DatePeriod