Part route match.
Methods
Create a part RouteMatch with given parameters and length.
__construct(array $params, int $length)
Parameters
$params
array
$length
int
Get the matched path length.
getLength() : int
Get name of matched route.
getMatchedRouteName() : string
Inherited
inherited_from |
\Zend\Mvc\Router\RouteMatch::getMatchedRouteName() |
Returns
string
Get a specific parameter.
getParam(string $name, mixed $default) : mixed
Inherited
inherited_from |
\Zend\Mvc\Router\RouteMatch::getParam() |
Parameters
$name
string
$default
mixed
Returns
mixed
Get all parameters.
getParams() : array
Inherited
inherited_from |
\Zend\Mvc\Router\RouteMatch::getParams() |
Returns
array
setMatchedRouteName(): defined by BaseRouteMatch.
setMatchedRouteName(string $name) : \Zend\Mvc\Router\Http\RouteMatch
see |
\Zend\Mvc\Router\RouteMatch::setMatchedRouteName() |
Parameters
$name
string
Returns
Set a parameter.
setParam(string $name, mixed $value) : \Zend\Mvc\Router\RouteMatch
Inherited
inherited_from |
\Zend\Mvc\Router\RouteMatch::setParam() |
Parameters
$name
string
$value
mixed
Returns
Properties
Length of the matched path.
$length : int
Matched route name.
$matchedRouteName : string
Inherited
inherited_from |
\Zend\Mvc\Router\RouteMatch::$$matchedRouteName |
Match parameters.
$params : array
Inherited
inherited_from |
\Zend\Mvc\Router\RouteMatch::$$params |