Method route.

package Zend_Mvc_Router
subpackage Http

 Methods

Create a new method route.

__construct(string $verb, array $defaults) 

Parameters

$verb

string

$defaults

array

assemble(): Defined by RouteInterface interface.

assemble(array $params, array $options) : mixed

see \Zend\Mvc\Router\Http\Route::assemble()

Parameters

$params

array

$options

array

Returns

mixed

factory(): defined by RouteInterface interface.

factory(array | \Traversable $options) : \Zend\Mvc\Router\Http\Method

see \Zend\Mvc\Router\Http\Route::factory()

Parameters

$options

array\Traversable

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException

Returns

getAssembledParams(): defined by RouteInterface interface.

getAssembledParams() : array

see \Zend\Mvc\Router\Http\Route::getAssembledParams

Returns

array

match(): defined by RouteInterface interface.

match(\Zend\Stdlib\RequestInterface $request) : \Zend\Mvc\Router\Http\RouteMatch | null

see \Zend\Mvc\Router\Http\Route::match()

Parameters

Returns

 Properties

 

Default values.

$defaults : array

 

Verb to match.

$verb : string