vito/app/NotificationChannels/NotificationChannel.php
2025-03-12 13:31:10 +01:00

30 lines
640 B
PHP

<?php
namespace App\NotificationChannels;
use App\Notifications\NotificationInterface;
interface NotificationChannel
{
/**
* @param array<string, mixed> $input
* @return array<string, mixed>
*/
public function createRules(array $input): array;
/**
* @param array<string, mixed> $input
* @return array<string, mixed>
*/
public function createData(array $input): array;
/**
* @return array<string, mixed>
*/
public function data(): array;
public function connect(): bool;
public function send(object $notifiable, NotificationInterface $notification): void;
}