Skip to content

Commit a48bac1

Browse files
committed
[Messenger] Improve PHPDoc descriptions of attribute classes and parameters
1 parent e434a54 commit a48bac1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,29 @@
2020
class AsMessageHandler
2121
{
2222
public function __construct(
23+
/**
24+
* Name of the bus from which this handler can receive messages, by default all buses.
25+
*/
2326
public ?string $bus = null,
27+
28+
/**
29+
* Name of the transport from which this handler can receive messages, by default all transports.
30+
*/
2431
public ?string $fromTransport = null,
32+
33+
/**
34+
* Type of messages (FQCN) that can be processed by the handler, only needed if can't be guessed by type-hint.
35+
*/
2536
public ?string $handles = null,
37+
38+
/**
39+
* Name of the method that will process the message, only if the target is a class.
40+
*/
2641
public ?string $method = null,
42+
43+
/**
44+
* Priority of this handler when multiple handlers can process the same message.
45+
*/
2746
public int $priority = 0,
2847
) {
2948
}

0 commit comments

Comments
 (0)