Skip to content

Commit

Permalink
Merge pull request #1306 from VincentLanglet/commandSubscriber
Browse files Browse the repository at this point in the history
[ENQUEUE] Precise phpdoc for static analysis
  • Loading branch information
makasim authored Oct 14, 2023
2 parents 03eff4c + b39c388 commit 8a0c3d2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 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();
}

0 comments on commit 8a0c3d2

Please sign in to comment.