public function isDuring(IntervalInterface $other) { return $this->begin === max($this->begin, $other->getBegin()) && $this->end === min($this->end, $other->getEnd()); }
public function isAfter(IntervalInterface $interval) { return $this->begin->isAfter($interval->getEnd()); }