mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-04 11:45:00 +02:00
36 lines
690 B
PHP
36 lines
690 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Contracts\Events;
|
|
|
|
use Filament\Notifications\Notification;
|
|
use Illuminate\Support\Collection;
|
|
|
|
/**
|
|
* Interface FilamentNotificationEvent.
|
|
*/
|
|
interface FilamentNotificationEvent
|
|
{
|
|
/**
|
|
* Determine if the notifications should be sent.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function shouldSendFilamentNotification(): bool;
|
|
|
|
/**
|
|
* Get the filament notification.
|
|
*
|
|
* @return Notification
|
|
*/
|
|
public function getFilamentNotification(): Notification;
|
|
|
|
/**
|
|
* Get the users to notify.
|
|
*
|
|
* @return Collection
|
|
*/
|
|
public function getFilamentNotificationRecipients(): Collection;
|
|
}
|