public function setEndDate(Carbon $endDate) { $this->validatePeriod(null, $endDate); $this->endDate = $endDate; return $this; }