]> BookStack Code Mirror - bookstack/blobdiff - app/Activity/Notifications/Handlers/NotificationHandler.php
ZIP Imports: Added API examples, finished testing
[bookstack] / app / Activity / Notifications / Handlers / NotificationHandler.php
index fecca21813783525e79918fc412cab0ff28bab62..8c5498664e1d4e55916a85d984309a6064469efc 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace BookStack\Activity\Notifications\Handlers;
 
+use BookStack\Activity\Models\Activity;
 use BookStack\Activity\Models\Loggable;
 use BookStack\Users\Models\User;
 
@@ -9,8 +10,8 @@ interface NotificationHandler
 {
     /**
      * Run this handler.
-     * Provides the activity type, related activity detail/model
+     * Provides the activity, related activity detail/model
      * along with the user that triggered the activity.
      */
-    public function handle(string $activityType, string|Loggable $detail, User $user): void;
+    public function handle(Activity $activity, string|Loggable $detail, User $user): void;
 }