public function getSortDate() : string { if ($this->startDate) { return $this->startDate; } if ($this->startDateTime) { return $this->startDateTime; } return ''; }