mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-22 03:02:20 +00:00
30 lines
640 B
PHP
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;
|
|
}
|