Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Notification/Notifier.php')
-rw-r--r--lib/Notification/Notifier.php22
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php
index b7a19bd..c3dcc6d 100644
--- a/lib/Notification/Notifier.php
+++ b/lib/Notification/Notifier.php
@@ -74,7 +74,7 @@ class Notifier implements INotifier
*
* @return INotification
*/
- public function prepare(INotification $notification, $languageCode)
+ public function prepare(INotification $notification, string $languageCode): INotification
{
if ($notification->getApp() !== Application::APP_ID) {
// Not my app => throw
@@ -96,4 +96,24 @@ class Notifier implements INotifier
throw new \InvalidArgumentException('Unknown subject');
}
}
+
+ /**
+ * Identifier of the notifier, only use [a-z0-9_]
+ *
+ * @return string
+ * @since 17.0.0
+ */
+ public function getID(): string {
+ return Application::APP_ID;
+ }
+
+ /**
+ * Human readable name describing the notifier
+ *
+ * @return string
+ * @since 17.0.0
+ */
+ public function getName(): string {
+ return $this->l10nFactory->get(Application::APP_ID)->t('Ransomware recovery');
+ }
}