Zend Framework  3.0
Public Member Functions | Static Public Member Functions | List of all members
RouteInterface Interface Reference

RouteInterface interface. More...

Public Member Functions

 match (Request $request)
 Match a given request.
 
 assemble (array $params=[], array $options=[])
 Assemble the route.
 

Static Public Member Functions

static factory ($options=[])
 Create a new route with given options.
 

Detailed Description

RouteInterface interface.

Member Function Documentation

assemble ( array  $params = [],
array  $options = [] 
)

Assemble the route.

Parameters
array$params
array$options
Returns
mixed

Implemented in Segment, TreeRouteStack, SimpleRouteStack, Hostname, Part, Wildcard, Chain, Regex, Simple, Literal, Method, Scheme, TranslatorAwareTreeRouteStack, Catchall, and TranslatorAwareTreeRouteStack.

static factory (   $options = [])
static

Create a new route with given options.

Parameters
array | \Traversable$options
Returns
void

Implemented in Segment, Part, Hostname, Regex, Wildcard, Simple, SimpleRouteStack, Catchall, Chain, TreeRouteStack, Literal, Method, Scheme, and TranslatorAwareTreeRouteStack.

match ( Request  $request)

Match a given request.

Parameters
Request$request
Returns
RouteMatch|null

Implemented in SimpleRouteStack, Hostname, Method, Scheme, and Catchall.