From a48bac139df7bc1f8fc4fc2c3c719e6d22eddbd7 Mon Sep 17 00:00:00 2001 From: Rachid Hammaoui Date: Mon, 6 Nov 2023 22:58:29 +0100 Subject: [PATCH] [Messenger] Improve PHPDoc descriptions of attribute classes and parameters --- .../Messenger/Attribute/AsMessageHandler.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php b/src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php index c0acf6f6c3d3b..e0d764e5c4cb2 100644 --- a/src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php +++ b/src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php @@ -20,10 +20,29 @@ class AsMessageHandler { public function __construct( + /** + * Name of the bus from which this handler can receive messages, by default all buses. + */ public ?string $bus = null, + + /** + * Name of the transport from which this handler can receive messages, by default all transports. + */ public ?string $fromTransport = null, + + /** + * Type of messages (FQCN) that can be processed by the handler, only needed if can't be guessed by type-hint. + */ public ?string $handles = null, + + /** + * Name of the method that will process the message, only if the target is a class. + */ public ?string $method = null, + + /** + * Priority of this handler when multiple handlers can process the same message. + */ public int $priority = 0, ) { }