Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
RouteMatch Class Reference

RouteInterface match. More...

Public Member Functions

 __construct (array $params)
 Create a RouteMatch with given parameters.
 
 setMatchedRouteName ($name)
 Set name of matched route.
 
 getMatchedRouteName ()
 Get name of matched route.
 
 setParam ($name, $value)
 Set a parameter.
 
 getParams ()
 Get all parameters.
 
 getParam ($name, $default=null)
 Get a specific parameter.
 

Protected Attributes

 $params = []
 
 $matchedRouteName
 

Detailed Description

RouteInterface match.

Constructor & Destructor Documentation

__construct ( array  $params)

Create a RouteMatch with given parameters.

Parameters
array$params

Member Function Documentation

getMatchedRouteName ( )

Get name of matched route.

Returns
string
getParam (   $name,
  $default = null 
)

Get a specific parameter.

Parameters
string$name
mixed$default
Returns
mixed
getParams ( )

Get all parameters.

Returns
array
setMatchedRouteName (   $name)

Set name of matched route.

Parameters
string$name
Returns
RouteMatch
setParam (   $name,
  $value 
)

Set a parameter.

Parameters
string$name
mixed$value
Returns
RouteMatch

Member Data Documentation

$matchedRouteName
protected
$params = []
protected