Skip to content

[ENQUEUE] Add missing throws tag to interfaces #1304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/enqueue/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 pkg/enqueue/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 pkg/enqueue/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;
}