2024-03-10 22:06:00 +00:00
|
|
|
<?php
|
|
|
|
|
2024-03-13 23:32:44 +00:00
|
|
|
namespace NoccyLabs\Mercureact\Broker\Subscriber;
|
|
|
|
|
|
|
|
use NoccyLabs\Mercureact\Broker\Message;
|
2024-03-10 22:06:00 +00:00
|
|
|
|
|
|
|
interface SubscriberInterface
|
|
|
|
{
|
|
|
|
public function deliver(Message $message): void;
|
|
|
|
|
2024-03-10 23:36:34 +00:00
|
|
|
public function isAuthorized(): bool;
|
2024-03-12 00:45:21 +00:00
|
|
|
|
|
|
|
public function getPayload(): ?array;
|
2024-03-12 01:21:42 +00:00
|
|
|
|
|
|
|
public function getId(): string;
|
2024-03-10 22:06:00 +00:00
|
|
|
}
|