aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Notification
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-01-04 10:59:03 -0100
committerMaxence Lange <maxence@artificial-owl.com>2024-01-04 10:59:22 -0100
commit71bdda42e4da0d8e7b4c58827faa54f0852c4296 (patch)
treefa587d1dc13d2153b4f89de4d89c9366fc0c2ef4 /lib/private/Notification
parent11124c72e6d727212ae52beb0feeeff4c13471ba (diff)
downloadnextcloud-server-71bdda42e4da0d8e7b4c58827faa54f0852c4296.tar.gz
nextcloud-server-71bdda42e4da0d8e7b4c58827faa54f0852c4296.zip
initialize variables
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/Notification')
-rw-r--r--lib/private/Notification/Notification.php78
1 files changed, 20 insertions, 58 deletions
diff --git a/lib/private/Notification/Notification.php b/lib/private/Notification/Notification.php
index 9222f3cb0e3..ed2a84b0de2 100644
--- a/lib/private/Notification/Notification.php
+++ b/lib/private/Notification/Notification.php
@@ -32,71 +32,33 @@ use OCP\RichObjectStrings\InvalidObjectExeption;
use OCP\RichObjectStrings\IValidator;
class Notification implements INotification {
- protected string $app;
-
- protected string $user;
-
+ protected string $app = '';
+ protected string $user = '';
protected \DateTime $dateTime;
-
- protected string $objectType;
-
- protected string $objectId;
-
- protected string $subject;
-
- protected array $subjectParameters;
-
- protected string $subjectParsed;
-
- protected string $subjectRich;
-
- protected array $subjectRichParameters;
-
- protected string $message;
-
- protected array $messageParameters;
-
- protected string $messageParsed;
-
- protected string $messageRich;
-
- protected array $messageRichParameters;
-
- protected string $link;
-
- protected string $icon;
-
- protected array $actions;
-
- protected array $actionsParsed;
-
- protected bool $hasPrimaryAction;
-
- protected bool $hasPrimaryParsedAction;
+ protected string $objectType = '';
+ protected string $objectId = '';
+ protected string $subject = '';
+ protected array $subjectParameters = [];
+ protected string $subjectParsed = '';
+ protected string $subjectRich = '';
+ protected array $subjectRichParameters = [];
+ protected string $message = '';
+ protected array $messageParameters = [];
+ protected string $messageParsed = '';
+ protected string $messageRich = '';
+ protected array $messageRichParameters = [];
+ protected string $link = '';
+ protected string $icon = '';
+ protected array $actions = [];
+ protected array $actionsParsed = [];
+ protected bool $hasPrimaryAction = false;
+ protected bool $hasPrimaryParsedAction = false;
public function __construct(
protected IValidator $richValidator,
) {
- $this->app = '';
- $this->user = '';
$this->dateTime = new \DateTime();
$this->dateTime->setTimestamp(0);
- $this->objectType = '';
- $this->objectId = '';
- $this->subject = '';
- $this->subjectParameters = [];
- $this->subjectParsed = '';
- $this->subjectRich = '';
- $this->subjectRichParameters = [];
- $this->message = '';
- $this->messageParameters = [];
- $this->messageParsed = '';
- $this->messageRich = '';
- $this->messageRichParameters = [];
- $this->link = '';
- $this->icon = '';
- $this->actions = [];
- $this->actionsParsed = [];
}
/**