Route map/get/post... return self and not mixed

This commit is contained in:
2023-02-07 23:35:00 +01:00
parent cfb11c6d4a
commit 47298fc5e5

View File

@@ -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)