From e54019d4d9bcd103c90faea17ab87092fe0c1af3 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 19 Nov 2022 21:07:33 +0100 Subject: [PATCH] add a constructor in UrlGenerator --- src/core/Annotation/UrlGenerator.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/Annotation/UrlGenerator.php b/src/core/Annotation/UrlGenerator.php index 1b30e5a..6a651d8 100644 --- a/src/core/Annotation/UrlGenerator.php +++ b/src/core/Annotation/UrlGenerator.php @@ -15,4 +15,11 @@ class UrlGenerator public string $method; public array $options = []; + + public function __construct(string $service, string $method, array $options) + { + $this->service = $service; + $this->method = $method; + $this->options = $options; + } }