Skip to content
Merged
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
11 changes: 11 additions & 0 deletions pkg/enqueue/Client/CommandSubscriberInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

namespace Enqueue\Client;

/**
* @phpstan-type CommandConfig = array{
* command: string,
* processor?: string,
* queue?: string,
* prefix_queue?: bool,
* exclusive?: bool,
* }
*/
interface CommandSubscriberInterface
{
/**
Expand Down Expand Up @@ -44,6 +53,8 @@ interface CommandSubscriberInterface
* 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.
*
* @return string|array
*
* @phpstan-return string|CommandConfig|array<CommandConfig>
*/
public static function getSubscribedCommand();
}