From 50b52fefeebeb4eab002371e52423e4f23ca4a07 Mon Sep 17 00:00:00 2001 From: User Date: Sun, 2 Mar 2025 21:19:08 +0300 Subject: [PATCH] 20250302#2 --- src/RouterInterface.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/RouterInterface.php b/src/RouterInterface.php index 97e966f..d640d2c 100644 --- a/src/RouterInterface.php +++ b/src/RouterInterface.php @@ -5,9 +5,32 @@ namespace Rmphp\Foundation; use Psr\Http\Message\RequestInterface; interface RouterInterface { + + /** + * @param string $mountPoint + */ public function setStartPoint(string $mountPoint): void; + + /** + * @param array $rules + */ public function withRules(array $rules) : void; + + /** + * @param array $rules + * @return void + */ public function withSet(array $rules): void; + + /** + * @param RequestInterface $request + * @return array|null + */ public function match(RequestInterface $request) : ?array; + + /** + * @param RequestInterface $request + * @return array|null + */ public function matchByArgv(RequestInterface $request) : ?array; }