27 lines
539 B
PHP
27 lines
539 B
PHP
<?php
|
|
|
|
namespace App\Actions\Notifications;
|
|
|
|
use App\Enums\NotificationEventType;
|
|
use Illuminate\Contracts\Support\Arrayable;
|
|
|
|
/**
|
|
* @extends Arrayable<string, mixed>
|
|
*/
|
|
interface NotificationEventPayload extends Arrayable
|
|
{
|
|
public function eventType(): NotificationEventType;
|
|
|
|
public function projectId(): int;
|
|
|
|
/**
|
|
* @return array<string, scalar|null>
|
|
*/
|
|
public function deliveryMetadata(): array;
|
|
|
|
/**
|
|
* @return array<string, string>
|
|
*/
|
|
public function discordTemplateVariables(): array;
|
|
}
|