]> BookStack Code Mirror - bookstack/blob - app/Activity/Notifications/Handlers/NotificationHandler.php
fecca21813783525e79918fc412cab0ff28bab62
[bookstack] / app / Activity / Notifications / Handlers / NotificationHandler.php
1 <?php
2
3 namespace BookStack\Activity\Notifications\Handlers;
4
5 use BookStack\Activity\Models\Loggable;
6 use BookStack\Users\Models\User;
7
8 interface NotificationHandler
9 {
10     /**
11      * Run this handler.
12      * Provides the activity type, related activity detail/model
13      * along with the user that triggered the activity.
14      */
15     public function handle(string $activityType, string|Loggable $detail, User $user): void;
16 }