Class RouteMatch

Summary

Fully Qualified Name: Zend\Router\RouteMatch

Description

RouteInterface match.

Methods

Name Description Defined By
__construct() Create a RouteMatch with given parameters. RouteMatch
getMatchedRouteName() Get name of matched route. RouteMatch
getParam() Get a specific parameter. RouteMatch
getParams() Get all parameters. RouteMatch
setMatchedRouteName() Set name of matched route. RouteMatch
setParam() Set a parameter. RouteMatch

Method Details

__construct()

Create a RouteMatch with given parameters.

Parameter Name Type Description
$params array

Returns:

getMatchedRouteName()

Get name of matched route.

Returns: string

getParam()

Get a specific parameter.

Parameter Name Type Description
$name string
$default mixed

Returns: mixed

getParams()

Get all parameters.

Returns: array

setMatchedRouteName()

Set name of matched route.

Parameter Name Type Description
$name string

Returns: \RouteMatch

setParam()

Set a parameter.

Parameter Name Type Description
$name string
$value mixed

Returns: \RouteMatch

Top