comment; } /** * @return \DateTime */ public function getDate() { return $this->date; } public function getUserId(): ?int { return $this->userId; } public function isEmpty() { return null === $this->getComment() || '' === $this->getComment(); } public function setComment(?string $comment) { $this->comment = $comment; } public function setDate(?\DateTime $date) { $this->date = $date; } public function setUserId(?int $userId) { $this->userId = $userId; } }