Files
animethemes-server/app/Contracts/Events/NovaNotificationEvent.php
T
paranarimasu 088ea287c5 feat: initial migration to pennant features for feature flags and global site config [incremental] (#573)
* 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
2023-04-23 18:54:34 -05:00

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;
}