Fully Qualified Name: | Zend\Mvc\Console\Router\RouteMatch |
Extends: | RouteMatch |
Name | Description | Defined By |
---|---|---|
__construct() | Create a RouteMatch with given parameters and length. | RouteMatch |
getLength() | Get the matched path length. | RouteMatch |
getMatchedRouteName() | Get name of matched route. | RouteMatch |
getParam() | Get a specific parameter. | RouteMatch |
getParams() | Get all parameters. | RouteMatch |
merge() | Merge parameters from another match. | RouteMatch |
setMatchedRouteName() | setMatchedRouteName(): defined by BaseRouteMatch. | RouteMatch |
setParam() | Set a parameter. | RouteMatch |
Create a RouteMatch with given parameters and length.
Parameter Name | Type | Description |
---|---|---|
$params | array | |
$length | int |
Returns:
Get the matched path length.
Returns: int
Get name of matched route.
Returns: string
Get a specific parameter.
Parameter Name | Type | Description |
---|---|---|
$name | string | |
$default | mixed |
Returns: mixed
Get all parameters.
Returns: array
Merge parameters from another match.
Parameter Name | Type | Description |
---|---|---|
$match | \RouteMatch |
Returns: \RouteMatch
setMatchedRouteName(): defined by BaseRouteMatch.
Parameter Name | Type | Description |
---|---|---|
$name | string |
Returns: self
Set a parameter.
Parameter Name | Type | Description |
---|---|---|
$name | string | |
$value | mixed |
Returns: \RouteMatch