@@ -287,7 +287,7 @@ public function getUriTemplate(): ?string
287287 return $ this ->uriTemplate ;
288288 }
289289
290- public function withUriTemplate (?string $ uriTemplate = null )
290+ public function withUriTemplate (?string $ uriTemplate = null ): static
291291 {
292292 $ self = clone $ this ;
293293 $ self ->uriTemplate = $ uriTemplate ;
@@ -311,11 +311,17 @@ public function withTypes($types): static
311311 return $ self ;
312312 }
313313
314+ /**
315+ * @return array<int|string, string|string[]>|string|null
316+ */
314317 public function getFormats ()
315318 {
316319 return $ this ->formats ;
317320 }
318321
322+ /**
323+ * @param array<int|string, string|string[]>|string|null $formats
324+ */
319325 public function withFormats ($ formats = null ): static
320326 {
321327 $ self = clone $ this ;
@@ -324,11 +330,17 @@ public function withFormats($formats = null): static
324330 return $ self ;
325331 }
326332
333+ /**
334+ * @return array<int|string, string|string[]>|string|null
335+ */
327336 public function getInputFormats ()
328337 {
329338 return $ this ->inputFormats ;
330339 }
331340
341+ /**
342+ * @param array<int|string, string|string[]>|string|null $inputFormats
343+ */
332344 public function withInputFormats ($ inputFormats = null ): static
333345 {
334346 $ self = clone $ this ;
@@ -337,11 +349,17 @@ public function withInputFormats($inputFormats = null): static
337349 return $ self ;
338350 }
339351
352+ /**
353+ * @return array<int|string, string|string[]>|string|null
354+ */
340355 public function getOutputFormats ()
341356 {
342357 return $ this ->outputFormats ;
343358 }
344359
360+ /**
361+ * @param array<int|string, string|string[]>|string|null $outputFormats
362+ */
345363 public function withOutputFormats ($ outputFormats = null ): static
346364 {
347365 $ self = clone $ this ;
@@ -350,6 +368,9 @@ public function withOutputFormats($outputFormats = null): static
350368 return $ self ;
351369 }
352370
371+ /**
372+ * @return array<string, mixed>|array<int, Link>|list<string>|null
373+ */
353374 public function getUriVariables ()
354375 {
355376 return $ this ->uriVariables ;
0 commit comments