user = $user; $this->setFromToken($token); } public function getUser(): User { return $this->user; } public function getComment(): string { return $this->comment; } public function setComment(string $comment): void { $this->comment = $this->truncateString($comment); } public function __toString(): string { return $this->comment; } }