From 38896472901847d41df1150c81c5a9ce4d8aa5f9 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Mon, 12 Jun 2023 15:39:04 +0200 Subject: [PATCH] Add throws tag --- Client/PreSendCommandExtensionInterface.php | 3 +++ Client/PreSendEventExtensionInterface.php | 3 +++ Client/ProducerInterface.php | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/Client/PreSendCommandExtensionInterface.php b/Client/PreSendCommandExtensionInterface.php index b2f6c7a..cefec09 100644 --- a/Client/PreSendCommandExtensionInterface.php +++ b/Client/PreSendCommandExtensionInterface.php @@ -4,5 +4,8 @@ interface PreSendCommandExtensionInterface { + /** + * @throws \Exception + */ public function onPreSendCommand(PreSend $context): void; } diff --git a/Client/PreSendEventExtensionInterface.php b/Client/PreSendEventExtensionInterface.php index 1eaaae5..ecb0519 100644 --- a/Client/PreSendEventExtensionInterface.php +++ b/Client/PreSendEventExtensionInterface.php @@ -4,5 +4,8 @@ interface PreSendEventExtensionInterface { + /** + * @throws \Exception + */ public function onPreSendEvent(PreSend $context): void; } diff --git a/Client/ProducerInterface.php b/Client/ProducerInterface.php index 1c7b056..3c88480 100644 --- a/Client/ProducerInterface.php +++ b/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; }