id; } public function getNewsId(): ?News { return $this->newsId; } public function setNewsId(News $newsId): static { $this->newsId = $newsId; return $this; } public function isModerated(): ?bool { return $this->moderated; } public function setModerated(bool $moderated): static { $this->moderated = $moderated; return $this; } public function getModeratorId(): ?User { return $this->moderatorId; } public function setModeratorId(?User $moderatorId): static { $this->moderatorId = $moderatorId; return $this; } public function getUserName(): ?string { return $this->userName; } public function setUserName(string $userName): static { $this->userName = $userName; return $this; } public function getUserId(): ?User { return $this->userId; } public function setUserId(?User $userId): static { $this->userId = $userId; return $this; } public function getText(): ?string { return $this->text; } public function setText(string $text): static { $this->text = $text; return $this; } public function getCreateAt(): ?\DateTimeInterface { return $this->createAt; } public function setCreateAt(\DateTimeInterface $createAt): static { $this->createAt = $createAt; return $this; } public function getUpdateAt(): ?\DateTimeImmutable { return $this->updateAt; } public function setUpdateAt(\DateTimeImmutable $updateAt): static { $this->updateAt = $updateAt; return $this; } }