task; } /** * Does the app that scheduled the task want a notification? * * @return bool */ public function getWantsNotification(): bool { return $this->wantsNotification; } /** * @param bool $wantsNotification true means a notification will be produced for this task * @return void */ public function setWantsNotification(bool $wantsNotification): void { $this->wantsNotification = $wantsNotification; } /** * @return string|null */ public function getNotificationTarget(): ?string { return $this->notificationTarget; } /** * @param string|null $notificationTarget URL that will be used as target for the notification and its main action, * null means the assistant will take care of rendering the result (in a modal or by setting a dedicated NC page showing the result) * @return void */ public function setNotificationTarget(?string $notificationTarget): void { $this->notificationTarget = $notificationTarget; } /** * @return string|null */ public function getNotificationActionLabel(): ?string { return $this->notificationActionLabel; } /** * @param string|null $notificationActionLabel Label of the main notification action * null will not change the default action label * @return void */ public function setNotificationActionLabel(?string $notificationActionLabel): void { $this->notificationActionLabel = $notificationActionLabel; } }