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