From ee4eb10cb09baf7315fb26f7feaa50f3225d621a Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Mon, 12 Jun 2023 15:39:04 +0200 Subject: [PATCH] Add throws tag --- pkg/enqueue/Client/PreSendCommandExtensionInterface.php | 3 +++ pkg/enqueue/Client/PreSendEventExtensionInterface.php | 3 +++ pkg/enqueue/Client/ProducerInterface.php | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/pkg/enqueue/Client/PreSendCommandExtensionInterface.php b/pkg/enqueue/Client/PreSendCommandExtensionInterface.php index b2f6c7a5f..cefec097f 100644 --- a/pkg/enqueue/Client/PreSendCommandExtensionInterface.php +++ b/pkg/enqueue/Client/PreSendCommandExtensionInterface.php @@ -4,5 +4,8 @@ interface PreSendCommandExtensionInterface { + /** + * @throws \Exception + */ public function onPreSendCommand(PreSend $context): void; } diff --git a/pkg/enqueue/Client/PreSendEventExtensionInterface.php b/pkg/enqueue/Client/PreSendEventExtensionInterface.php index 1eaaae562..ecb0519c2 100644 --- a/pkg/enqueue/Client/PreSendEventExtensionInterface.php +++ b/pkg/enqueue/Client/PreSendEventExtensionInterface.php @@ -4,5 +4,8 @@ interface PreSendEventExtensionInterface { + /** + * @throws \Exception + */ public function onPreSendEvent(PreSend $context): void; } diff --git a/pkg/enqueue/Client/ProducerInterface.php b/pkg/enqueue/Client/ProducerInterface.php index 1c7b056cf..3c884808a 100644 --- a/pkg/enqueue/Client/ProducerInterface.php +++ b/pkg/enqueue/Client/ProducerInterface.php @@ -10,6 +10,8 @@ interface ProducerInterface * The message could be pretty much everything as long as you have a client extension that transforms a body to string on onPreSendEvent. * * @param string|array|Message $message + * + * @throws \Exception */ public function sendEvent(string $topic, $message): void; @@ -18,6 +20,8 @@ public function sendEvent(string $topic, $message): void; * The promise is returned if needReply argument is true. * * @param string|array|Message $message + * + * @throws \Exception */ public function sendCommand(string $command, $message, bool $needReply = false): ?Promise; }