accompanyingPeriod; } public function getContent(): ?string { return $this->content; } public function getCreatedAt(): ?DateTimeInterface { return $this->createdAt; } public function getCreator(): ?User { return $this->creator; } public function getId(): ?int { return $this->id; } public function getUpdatedAt(): ?DateTimeInterface { return $this->updatedAt; } public function getUpdatedBy(): ?User { return $this->updatedBy; } public function isPinned(): bool { return $this->getAccompanyingPeriod()->getPinnedComment() === $this; } public function setAccompanyingPeriod(?AccompanyingPeriod $accompanyingPeriod): self { $this->accompanyingPeriod = $accompanyingPeriod; return $this; } public function setContent(string $content): self { $this->content = $content; return $this; } public function setCreatedAt(DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function setCreatedBy(User $user): self { return $this->setCreator($user); } public function setCreator(?User $creator): self { $this->creator = $creator; return $this; } public function setUpdatedAt(DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function setUpdatedBy(User $updatedBy): self { $this->updatedBy = $updatedBy; return $this; } }