diff --git a/src/Route.php b/src/Route.php index 82ba8b2..4a7af6a 100644 --- a/src/Route.php +++ b/src/Route.php @@ -25,6 +25,10 @@ class Route implements protected $handler; + /** + * @param array|string $method + * @param array $vars + */ public function __construct( protected array|string $method, protected string $path, @@ -66,6 +70,7 @@ public function getCallable(?ContainerInterface $container = null): callable return $callable; } + /** @return array|string */ public function getMethod(): array|string { return $this->method; @@ -87,6 +92,7 @@ public function getPath(array $replacements = []): string return preg_replace(array_keys($toReplace), array_values($toReplace), $this->path); } + /** @return array */ public function getVars(): array { return $this->vars; @@ -119,6 +125,7 @@ public function setParentGroup(RouteGroup $group): self return $this; } + /** @param array $vars */ public function setVars(array $vars): self { $this->vars = $vars;