Route map/get/post... return self and not mixed
This commit is contained in:
@@ -397,7 +397,7 @@ class Route
|
|||||||
* });
|
* });
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @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
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function get($route, $function)
|
public function get($route, $function)
|
||||||
@@ -423,7 +423,7 @@ class Route
|
|||||||
* });
|
* });
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @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
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function post($route, $function)
|
public function post($route, $function)
|
||||||
@@ -449,7 +449,7 @@ class Route
|
|||||||
* });
|
* });
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @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
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function put($route, $function)
|
public function put($route, $function)
|
||||||
@@ -475,7 +475,7 @@ class Route
|
|||||||
* });
|
* });
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @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
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function delete($route, $function)
|
public function delete($route, $function)
|
||||||
@@ -501,7 +501,7 @@ class Route
|
|||||||
* });
|
* });
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @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
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function options($route, $function)
|
public function options($route, $function)
|
||||||
@@ -529,7 +529,7 @@ class Route
|
|||||||
* @param string $methods The allowed methods, separated by commas (,)
|
* @param string $methods The allowed methods, separated by commas (,)
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @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
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function multi($methods, $route, $function)
|
public function multi($methods, $route, $function)
|
||||||
@@ -544,7 +544,7 @@ class Route
|
|||||||
* thereis a match
|
* thereis a match
|
||||||
* @param string $route Route to check with the URL
|
* @param string $route Route to check with the URL
|
||||||
* @param callable $function Function to be executed if the route match
|
* @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
|
* route object to chain it whith the next test
|
||||||
*/
|
*/
|
||||||
public function map($route, $function)
|
public function map($route, $function)
|
||||||
|
|||||||
Reference in New Issue
Block a user