Class Segment

Summary

Fully Qualified Name: Zend\Router\Http\Segment
Implements: RouteInterface

Description

Segment route.

Methods

Name Description Defined By
__construct() Create a new regex route. Segment
assemble() assemble(): Defined by RouteInterface interface. Segment
factory() factory(): defined by RouteInterface interface. Segment
getAssembledParams() getAssembledParams(): defined by RouteInterface interface. Segment
match() match(): defined by RouteInterface interface. Segment

Method Details

__construct()

Create a new regex route.

Parameter Name Type Description
$route string
$constraints array
$defaults array

Returns:

assemble()

assemble(): Defined by RouteInterface interface.

Parameter Name Type Description
$params array
$options array

Returns: mixed

factory()

factory(): defined by RouteInterface interface.

Parameter Name Type Description
$options array|\Traversable

Returns: \Segment

getAssembledParams()

getAssembledParams(): defined by RouteInterface interface.

Returns: array

match()

match(): defined by RouteInterface interface.

Parameter Name Type Description
$request \Request
$pathOffset string|null
$options array

Returns: \RouteMatch|null

Top