mercureact/src/Broker/Subscriber/SubscriberInterface.php

16 lines
310 B
PHP
Raw Normal View History

2024-03-10 22:06:00 +00:00
<?php
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
}