Skip to content

Commit 409dcb5

Browse files
authored
Merge pull request #1306 from VincentLanglet/commandSubscriber
[ENQUEUE] Precise phpdoc for static analysis
2 parents 85a6bec + 1151684 commit 409dcb5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkg/enqueue/Client/CommandSubscriberInterface.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
namespace Enqueue\Client;
44

5+
/**
6+
* @phpstan-type CommandConfig = array{
7+
* command: string,
8+
* processor?: string,
9+
* queue?: string,
10+
* prefix_queue?: bool,
11+
* exclusive?: bool,
12+
* }
13+
*/
514
interface CommandSubscriberInterface
615
{
716
/**
@@ -44,6 +53,8 @@ interface CommandSubscriberInterface
4453
* Note: If you set "prefix_queue" to true then the "queue" is used as is and therefor the driver is not used to create a transport queue name.
4554
*
4655
* @return string|array
56+
*
57+
* @phpstan-return string|CommandConfig|array<CommandConfig>
4758
*/
4859
public static function getSubscribedCommand();
4960
}

0 commit comments

Comments
 (0)