44
55namespace Slim \Interfaces ;
66
7- use Slim \Routing \Route ;
87use Slim \Routing \RouteGroup ;
98
109/**
@@ -21,69 +20,69 @@ interface RouteCollectionInterface
2120 * @param string $path Route path.
2221 * @param callable|string $handler Route handler or controller action.
2322 *
24- * @return Route
23+ * @return RouteInterface
2524 */
26- public function get (string $ path , callable |string $ handler ): Route ;
25+ public function get (string $ path , callable |string $ handler ): RouteInterface ;
2726
2827 /**
2928 * Register a POST route.
3029 *
3130 * @param string $path
3231 * @param callable|string $handler
3332 *
34- * @return Route
33+ * @return RouteInterface
3534 */
36- public function post (string $ path , callable |string $ handler ): Route ;
35+ public function post (string $ path , callable |string $ handler ): RouteInterface ;
3736
3837 /**
3938 * Register a PUT route.
4039 *
4140 * @param string $path
4241 * @param callable|string $handler
4342 *
44- * @return Route
43+ * @return RouteInterface
4544 */
46- public function put (string $ path , callable |string $ handler ): Route ;
45+ public function put (string $ path , callable |string $ handler ): RouteInterface ;
4746
4847 /**
4948 * Register a PATCH route.
5049 *
5150 * @param string $path
5251 * @param callable|string $handler
5352 *
54- * @return Route
53+ * @return RouteInterface
5554 */
56- public function patch (string $ path , callable |string $ handler ): Route ;
55+ public function patch (string $ path , callable |string $ handler ): RouteInterface ;
5756
5857 /**
5958 * Register a DELETE route.
6059 *
6160 * @param string $path
6261 * @param callable|string $handler
6362 *
64- * @return Route
63+ * @return RouteInterface
6564 */
66- public function delete (string $ path , callable |string $ handler ): Route ;
65+ public function delete (string $ path , callable |string $ handler ): RouteInterface ;
6766
6867 /**
6968 * Register an OPTIONS route.
7069 *
7170 * @param string $path
7271 * @param callable|string $handler
7372 *
74- * @return Route
73+ * @return RouteInterface
7574 */
76- public function options (string $ path , callable |string $ handler ): Route ;
75+ public function options (string $ path , callable |string $ handler ): RouteInterface ;
7776
7877 /**
7978 * Register a route for any HTTP method.
8079 *
8180 * @param string $path
8281 * @param callable|string $handler
8382 *
84- * @return Route
83+ * @return RouteInterface
8584 */
86- public function any (string $ path , callable |string $ handler ): Route ;
85+ public function any (string $ path , callable |string $ handler ): RouteInterface ;
8786
8887 /**
8988 * Register a route with multiple HTTP methods.
@@ -92,9 +91,9 @@ public function any(string $path, callable|string $handler): Route;
9291 * @param string $path Route path.
9392 * @param callable|string $handler Route handler.
9493 *
95- * @return Route
94+ * @return RouteInterface
9695 */
97- public function map (array $ methods , string $ path , callable |string $ handler ): Route ;
96+ public function map (array $ methods , string $ path , callable |string $ handler ): RouteInterface ;
9897
9998 /**
10099 * Register a group of routes under a common path prefix.
0 commit comments