public function next($interval = null) { if (is_null($interval)) { $interval = $this->getDateInterval(); } return new static($this->endDate, $this->endDate->add(static::filterDateInterval($interval))); }