Skip to content

Commit

Permalink
[Console][EventDispatcher][Security][Serializer][Workflow] Add PHPDoc…
Browse files Browse the repository at this point in the history
… to attribute classes and properties
  • Loading branch information
alexandre-daubois committed Jan 2, 2024
1 parent 098b62a commit 9b1de7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Attribute/AsEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
class AsEventListener
{
/**
* @param string|null $event The event name to listen to
* @param string|null $method The method to run when the listened event is triggered
* @param int $priority The priority of this listener if several are declared for the same event
* @param string|null $dispatcher The service id of the event dispatcher to listen to
*/
public function __construct(
public ?string $event = null,
public ?string $method = null,
Expand Down

0 comments on commit 9b1de7b

Please sign in to comment.