2023-07-19 18:03:05 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BookStack\Activity\Notifications\Handlers;
|
|
|
|
|
|
|
|
use BookStack\Activity\Models\Loggable;
|
2023-08-04 19:27:29 +08:00
|
|
|
use BookStack\Users\Models\User;
|
2023-07-19 18:03:05 +08:00
|
|
|
|
|
|
|
interface NotificationHandler
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run this handler.
|
2023-08-04 19:27:29 +08:00
|
|
|
* Provides the activity type, related activity detail/model
|
|
|
|
* along with the user that triggered the activity.
|
2023-07-19 18:03:05 +08:00
|
|
|
*/
|
2023-08-04 19:27:29 +08:00
|
|
|
public function handle(string $activityType, string|Loggable $detail, User $user): void;
|
2023-07-19 18:03:05 +08:00
|
|
|
}
|