From 47298fc5e5a43d2723675eb602445175fe14f73c Mon Sep 17 00:00:00 2001 From: Dominique FOURNIER Date: Tue, 7 Feb 2023 23:35:00 +0100 Subject: [PATCH] Route map/get/post... return self and not mixed --- src/Route.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Route.php b/src/Route.php index 612980c..33c068c 100644 --- a/src/Route.php +++ b/src/Route.php @@ -397,7 +397,7 @@ class Route * }); * @param string $route Route to check with the URL * @param callable $function Function to be executed if the route match - * @return mixed Exit of the PHP after displaying the page if match, or return the + * @return self Exit of the PHP after displaying the page if match, or return the * route object to chain it whith the next test */ public function get($route, $function) @@ -423,7 +423,7 @@ class Route * }); * @param string $route Route to check with the URL * @param callable $function Function to be executed if the route match - * @return mixed Exit of the PHP after displaying the page if match, or return the + * @return self Exit of the PHP after displaying the page if match, or return the * route object to chain it whith the next test */ public function post($route, $function) @@ -449,7 +449,7 @@ class Route * }); * @param string $route Route to check with the URL * @param callable $function Function to be executed if the route match - * @return mixed Exit of the PHP after displaying the page if match, or return the + * @return self Exit of the PHP after displaying the page if match, or return the * route object to chain it whith the next test */ public function put($route, $function) @@ -475,7 +475,7 @@ class Route * }); * @param string $route Route to check with the URL * @param callable $function Function to be executed if the route match - * @return mixed Exit of the PHP after displaying the page if match, or return the + * @return self Exit of the PHP after displaying the page if match, or return the * route object to chain it whith the next test */ public function delete($route, $function) @@ -501,7 +501,7 @@ class Route * }); * @param string $route Route to check with the URL * @param callable $function Function to be executed if the route match - * @return mixed Exit of the PHP after displaying the page if match, or return the + * @return self Exit of the PHP after displaying the page if match, or return the * route object to chain it whith the next test */ public function options($route, $function) @@ -529,7 +529,7 @@ class Route * @param string $methods The allowed methods, separated by commas (,) * @param string $route Route to check with the URL * @param callable $function Function to be executed if the route match - * @return mixed Exit of the PHP after displaying the page if match, or return the + * @return self Exit of the PHP after displaying the page if match, or return the * route object to chain it whith the next test */ public function multi($methods, $route, $function) @@ -544,7 +544,7 @@ class Route * thereis a match * @param string $route Route to check with the URL * @param callable $function Function to be executed if the route match - * @return mixed Exit of the PHP after displaying the page if match, or return the + * @return self Exit of the PHP after displaying the page if match, or return the * route object to chain it whith the next test */ public function map($route, $function)