Skip to content

Commit 11f09e0

Browse files
committed
minor symfony#52475 [Messenger] Improve PHPDoc descriptions of attribute classes and properties (makmaoui)
This PR was merged into the 7.1 branch. Discussion ---------- [Messenger] Improve PHPDoc descriptions of attribute classes and properties | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | Part of symfony#51920 | License | MIT Add PHPDoc to Messenger attribute : AsMessageHandler Commits ------- a48bac1 [Messenger] Improve PHPDoc descriptions of attribute classes and parameters
2 parents e6c260d + a48bac1 commit 11f09e0

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)