Skip to content

Commit

Permalink
minor #52475 [Messenger] Improve PHPDoc descriptions of attribute cla…
Browse files Browse the repository at this point in the history
…sses 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 #51920
| License       | MIT

Add PHPDoc to Messenger attribute : AsMessageHandler

Commits
-------

a48bac1 [Messenger] Improve PHPDoc descriptions of attribute classes and parameters
  • Loading branch information
fabpot committed Dec 4, 2023
2 parents e6c260d + a48bac1 commit 11f09e0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Symfony/Component/Messenger/Attribute/AsMessageHandler.php
Expand Up @@ -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,
) {
}
Expand Down

0 comments on commit 11f09e0

Please sign in to comment.