diff --git a/Client/CommandSubscriberInterface.php b/Client/CommandSubscriberInterface.php index 9ee09d0..d7b06da 100644 --- a/Client/CommandSubscriberInterface.php +++ b/Client/CommandSubscriberInterface.php @@ -2,6 +2,15 @@ namespace Enqueue\Client; +/** + * @phpstan-type CommandConfig = array{ + * command: string, + * processor?: string, + * queue?: string, + * prefix_queue?: bool, + * exclusive?: bool, + * } + */ interface CommandSubscriberInterface { /** @@ -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 */ public static function getSubscribedCommand(); }