> $payload */ public function __construct(private ?User $user = null, protected array $payload = []) { } public function getUser(): ?User { return $this->user; } public function getContent(): string { return $this->content; } public function addContent(string $content): ThemeEvent { $this->content .= $content; return $this; } /** * @return array> */ public function getPayload(): array { return $this->payload; } }