Skip to content

Commit b39c388

Browse files
Precise phpdoc for static analysis
1 parent 9273d07 commit b39c388

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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)