public function addRoutes(array $routes = [])
    {
        foreach($routes as $route)
        {
            if ($route instanceof RouteInterface) $this->routes[] = $route;
        }
    }
public function addRoutes(array $routes = [])
    {
        foreach($routes as $route)
        {
            if ($route instanceof RouteInterface) $this->routes[] = $route;
        }
    }
public function addRoutes ( array $ routes = [ ] ) { foreach ( $ routes as $ route ) { if ( $ route instanceof RouteInterface ) $ this -> routes [ ] = $ route ; } }
Add all routes which are available

@param RouteInterface[] $routes
@return void
Add all routes which are available