3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Mvc\Router
;
12 interface RouteStackInterface
extends RouteInterface
15 * Add a route to the stack.
19 * @param int $priority
20 * @return RouteStackInterface
22 public function addRoute($name, $route, $priority = null);
25 * Add multiple routes to the stack.
27 * @param array|\Traversable $routes
28 * @return RouteStackInterface
30 public function addRoutes($routes);
33 * Remove a route from the stack.
36 * @return RouteStackInterface
38 public function removeRoute($name);
41 * Remove all routes from the stack and set new ones.
43 * @param array|\Traversable $routes
44 * @return RouteStackInterface
46 public function setRoutes($routes);