Skip to content

Commit

Permalink
Add throws tag
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Jun 12, 2023
1 parent 9273d07 commit 3889647
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Client/PreSendCommandExtensionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

interface PreSendCommandExtensionInterface
{
/**
* @throws \Exception
*/
public function onPreSendCommand(PreSend $context): void;
}
3 changes: 3 additions & 0 deletions Client/PreSendEventExtensionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

interface PreSendEventExtensionInterface
{
/**
* @throws \Exception
*/
public function onPreSendEvent(PreSend $context): void;
}
4 changes: 4 additions & 0 deletions Client/ProducerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}

0 comments on commit 3889647

Please sign in to comment.