From 31833a8dde6c919f1b76d1fb27b2edc09516bce1 Mon Sep 17 00:00:00 2001 From: User Date: Sun, 2 Mar 2025 21:19:08 +0300 Subject: [PATCH] 20250302#2 --- src/Router.php | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/src/Router.php b/src/Router.php index 5cf5651..ad2552d 100644 --- a/src/Router.php +++ b/src/Router.php @@ -11,16 +11,12 @@ class Router implements RouterInterface { private array $rules = []; private string $startPoint = "/"; - /** - * @param string $mountPoint - */ + /** @inheritDoc */ public function setStartPoint(string $mountPoint): void { $this->startPoint = $mountPoint; } - /** - * @param array $rules - */ + /** @inheritDoc */ public function withRules(array $rules): void { $this->rules = []; @@ -45,10 +41,7 @@ class Router implements RouterInterface { } } - /** - * @param array $rules - * @return void - */ + /** @inheritDoc */ public function withSet(array $rules): void { $this->rules = []; @@ -60,10 +53,7 @@ class Router implements RouterInterface { } } - /** - * @param RequestInterface $request - * @return array|null - */ + /** @inheritDoc */ public function match(RequestInterface $request): ?array { foreach ($this->rules as $rule) { @@ -117,10 +107,7 @@ class Router implements RouterInterface { return null; } - /** - * @param RequestInterface $request - * @return array|null - */ + /** @inheritDoc */ public function matchByArgv(RequestInterface $request): ?array { foreach ($this->rules as $rule) {