mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
initialize variables
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
11124c72e6
commit
71bdda42e4
1 changed files with 20 additions and 58 deletions
|
|
@ -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 = [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue