@@ -41,16 +41,34 @@ abstract class Action
4141
4242 protected ?string $ desc = null ;
4343
44+ /**
45+ * @var array<string>
46+ */
4447 protected array $ groups = [];
4548
49+ /**
50+ * @var callable
51+ */
4652 protected $ callback ;
4753
54+ /**
55+ * @var array<string, mixed>
56+ */
4857 protected array $ options = [];
4958
59+ /**
60+ * @var array<string, array<string, mixed>>
61+ */
5062 protected array $ params = [];
5163
64+ /**
65+ * @var array<int, string>
66+ */
5267 protected array $ injections = [];
5368
69+ /**
70+ * @var array<string, mixed>
71+ */
5472 protected array $ labels = [];
5573
5674 protected string $ type = self ::TYPE_DEFAULT ;
@@ -104,7 +122,7 @@ public function desc(string $description): self
104122 /**
105123 * Get the value of groups
106124 *
107- * @return array
125+ * @return array<string>
108126 */
109127 public function getGroups (): array
110128 {
@@ -114,7 +132,7 @@ public function getGroups(): array
114132 /**
115133 * Set Groups
116134 *
117- * @param array $groups
135+ * @param array<string> $groups
118136 * @return self
119137 */
120138 public function groups (array $ groups ): self
@@ -150,7 +168,7 @@ public function callback(mixed $callback): self
150168 /**
151169 * Get the value of params
152170 *
153- * @return array
171+ * @return array<string, array<string, mixed>>
154172 */
155173 public function getParams (): array
156174 {
@@ -165,7 +183,7 @@ public function getParams(): array
165183 * @param Validator|callable $validator
166184 * @param string $description
167185 * @param bool $optional
168- * @param array $injections
186+ * @param array<string> $injections
169187 * @param bool $skipValidation
170188 * @param bool $deprecated
171189 * @param string $example
@@ -204,7 +222,7 @@ public function param(
204222 /**
205223 * Get the value of injections
206224 *
207- * @return array
225+ * @return array<int, string>
208226 */
209227 public function getInjections (): array
210228 {
@@ -237,7 +255,7 @@ public function inject(string $injection): self
237255 /**
238256 * Get the value of labels
239257 *
240- * @return array
258+ * @return array<string, mixed>
241259 */
242260 public function getLabels (): array
243261 {
@@ -261,7 +279,7 @@ public function label(string $key, mixed $value): self
261279 /**
262280 * Get Http Options
263281 *
264- * @return array
282+ * @return array<string, mixed>
265283 */
266284 public function getOptions (): array
267285 {
0 commit comments