Ejemplo n.º 1
0
 /**
  * Will add a subroute to this route
  *
  * @param $route
  */
 public function addRoute($route)
 {
     if (is_string($route)) {
         $route = new RecursiveRoute($route);
     }
     if (!$route instanceof RecursiveRoute) {
         throw new RecursiveRoute_InvalidArgument_Exception(__METHOD__ . ': Arguement should be string or RecursiveRoute object');
     }
     $route->setSubRoute();
     array_push($this->subRoutes, $route);
 }