Skip to content

Commit ee4eb10

Browse files
Add throws tag
1 parent 4a78c2e commit ee4eb10

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

pkg/enqueue/Client/PreSendCommandExtensionInterface.php

+3
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44

55
interface PreSendCommandExtensionInterface
66
{
7+
/**
8+
* @throws \Exception
9+
*/
710
public function onPreSendCommand(PreSend $context): void;
811
}

pkg/enqueue/Client/PreSendEventExtensionInterface.php

+3
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44

55
interface PreSendEventExtensionInterface
66
{
7+
/**
8+
* @throws \Exception
9+
*/
710
public function onPreSendEvent(PreSend $context): void;
811
}

pkg/enqueue/Client/ProducerInterface.php

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ interface ProducerInterface
1010
* The message could be pretty much everything as long as you have a client extension that transforms a body to string on onPreSendEvent.
1111
*
1212
* @param string|array|Message $message
13+
*
14+
* @throws \Exception
1315
*/
1416
public function sendEvent(string $topic, $message): void;
1517

@@ -18,6 +20,8 @@ public function sendEvent(string $topic, $message): void;
1820
* The promise is returned if needReply argument is true.
1921
*
2022
* @param string|array|Message $message
23+
*
24+
* @throws \Exception
2125
*/
2226
public function sendCommand(string $command, $message, bool $needReply = false): ?Promise;
2327
}

0 commit comments

Comments
 (0)