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