mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-04 11:45:00 +02:00
* feat: initial commit for feature management * style: fix StyleCI findings * fix(api): prohibit features of nonnull scope from API & fix(admin): wrong translate key * style: fix Static Analysis error
36 lines
682 B
PHP
36 lines
682 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Contracts\Events;
|
|
|
|
use Illuminate\Support\Collection;
|
|
use Laravel\Nova\Notifications\NovaNotification;
|
|
|
|
/**
|
|
* Interface NovaNotificationEvent.
|
|
*/
|
|
interface NovaNotificationEvent
|
|
{
|
|
/**
|
|
* Determine if the notifications should be sent.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function shouldSendNovaNotification(): bool;
|
|
|
|
/**
|
|
* Get the nova notification.
|
|
*
|
|
* @return NovaNotification
|
|
*/
|
|
public function getNovaNotification(): NovaNotification;
|
|
|
|
/**
|
|
* Get the users to notify.
|
|
*
|
|
* @return Collection
|
|
*/
|
|
public function getNovaNotificationRecipients(): Collection;
|
|
}
|