Files
vito/app/NotificationChannels/NotificationChannel.php
Saeed Vaziry 131b828807 Plugins base (#613)
* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
2025-06-14 14:35:18 +02:00

32 lines
682 B
PHP

<?php
namespace App\NotificationChannels;
use App\Notifications\NotificationInterface;
interface NotificationChannel
{
public static function id(): string;
/**
* @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;
}