Skip to content

Commit

Permalink
Merge pull request #1304 from VincentLanglet/producer
Browse files Browse the repository at this point in the history
[ENQUEUE] Add missing throws tag to interfaces
  • Loading branch information
makasim authored Oct 14, 2023
2 parents 8a0c3d2 + 3889647 commit ad06c60
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 ad06c60

Please sign in to comment.