Route
class Route (View source)
Represents a matched request route.
Methods
Route constructor.
Returns the requested HTTP method.
Returns the handler for the requested route.
Returns the unencoded canonical path for the requested route.
Returns the encoded URL for the requested route.
Returns the value for the given parameter from the requested route.
Returns all parameters from the requested route as an associative array.
Details
at line 32
__construct(RouteDefinition $definition, string $method, array $segments, array $values)
Route constructor.
at line 44
string
getMethod()
Returns the requested HTTP method.
at line 53
mixed
getHandler()
Returns the handler for the requested route.
at line 62
string
getPath()
Returns the unencoded canonical path for the requested route.
at line 81
string
getUrl()
Returns the encoded URL for the requested route.
at line 91
string
getParameter(string $name)
Returns the value for the given parameter from the requested route.
at line 104
array
getParameters()
Returns all parameters from the requested route as an associative array.