$callback
$callback :
The callback method to execute when the route is matched
Any valid "callable" type is allowed
Route
Class to represent a route definition
setCallback(callable $callback) : \app\framework\Component\Route\Klein\Route
Set the callback
callable | $callback |
If the callback isn't a callable
setPath(string $path) : \app\framework\Component\Route\Klein\Route
Set the path
string | $path |
setMethod(string|array|null $method) : \app\framework\Component\Route\Klein\Route
Set the method
string|array|null | $method |
If a non-string or non-array type is passed
setCountMatch(boolean $count_match) : \app\framework\Component\Route\Klein\Route
Set the count_match
boolean | $count_match |
setName(string $name) : \app\framework\Component\Route\Klein\Route
Set the name
string | $name |