user = $user; $this->setFromToken($token); } public function getUser(): User { return $this->user; } /** * @AuditLog\AuditIdentifier */ public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): void { $this->comment = $this->truncateString($comment); } /** * @return mixed[] */ public function jsonSerialize(): array { return [ 'id' => $this->id, 'comment' => $this->comment, ]; } }