From 9b1de7b5f146f8bd3a84e29b7e7dcaac2decb73d Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 10 Oct 2023 16:04:32 +0200 Subject: [PATCH] [Console][EventDispatcher][Security][Serializer][Workflow] Add PHPDoc to attribute classes and properties --- Attribute/AsEventListener.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Attribute/AsEventListener.php b/Attribute/AsEventListener.php index bb931b8..590ada9 100644 --- a/Attribute/AsEventListener.php +++ b/Attribute/AsEventListener.php @@ -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,