user = $user; $this->payload = $payload; } /** * @deprecated since 1.0 */ public function getUser(): ?User { @trigger_error('Using ThemeEvent::getUser() is deprecated and will be removed with 2.0', E_USER_DEPRECATED); return $this->user; } public function getContent(): string { return $this->content; } public function addContent(string $content): ThemeEvent { $this->content .= $content; return $this; } /** * @return mixed */ public function getPayload() { return $this->payload; } /** * @param mixed $payload * @return ThemeEvent */ public function setPayload($payload) { $this->payload = $payload; return $this; } }