public function gap(Period $period) { if ($period->getStartDate() > $this->startDate) { return new static($this->endDate, $period->getStartDate()); } return new static($period->getEndDate(), $this->startDate); }