RouteInterface interface.

package Default
inherited_from \Zend\Mvc\Router\RouteInterface

 Methods

Add a route to the stack.

addRoute(string $name, mixed $route, integer $priority = null) : \Zend\Mvc\Router\RouteStackInterface

Parameters

$name

string

$route

mixed

$priority

integer

Returns

\Zend\Mvc\Router\RouteStackInterface

Add multiple routes to the stack.

addRoutes(array|\Traversable $routes) : \Zend\Mvc\Router\RouteStackInterface

Parameters

$routes

array\Traversable

Returns

\Zend\Mvc\Router\RouteStackInterface

Remove a route from the stack.

removeRoute(string $name) : \Zend\Mvc\Router\RouteStackInterface

Parameters

$name

string

Returns

\Zend\Mvc\Router\RouteStackInterface

Remove all routes from the stack and set new ones.

setRoutes(array|\Traversable $routes) : \Zend\Mvc\Router\RouteStackInterface

Parameters

$routes

array\Traversable

Returns

\Zend\Mvc\Router\RouteStackInterface