startYear; } public function setStartYear(?int $startYear = null):self { if($startYear == null) $startYear = date('Y'); $this->startYear = $startYear; return $this; } public function getEndYear():?int { return $this->endYear; } public function setEndYear(?int $endYear):self { $this->endYear = $endYear; return $this; } }