startDate = $startDate; $this->endDate = $endDate; } /** * @return \DateTimeInterface */ public function getStartDate() { return $this->startDate; } /** * @return \DateTimeInterface */ public function getEndDate() { return $this->endDate; } /** * @return bool */ public function isEmpty() { return is_null($this->startDate) && is_null($this->endDate); } }