original_string: public function addRoute($route, $class, $action, $parameters = [], $hostparameters = [])
      {
          $this->log->debug('adding route : ' . $route . ' to class ' . $class . ' and action ' . $action);
  
          $this->routes[$route] = [
              "class" => $class,
              "action" => $action,
              "parameters" => $parameters,
              "hostparameters" => $hostparameters
          ];
          return $this;
      }
code: public function addRoute($route, $class, $action, $parameters = [], $hostparameters = [])
      {
          $this->log->debug('adding route : ' . $route . ' to class ' . $class . ' and action ' . $action);
  
          $this->routes[$route] = [
              "class" => $class,
              "action" => $action,
              "parameters" => $parameters,
              "hostparameters" => $hostparameters
          ];
          return $this;
      }
code_tokens: public function addRoute ( $ route , $ class , $ action , $ parameters = [ ] , $ hostparameters = [ ] ) { $ this -> log -> debug ( 'adding route : ' . $ route . ' to class ' . $ class . ' and action ' . $ action ) ; $ this -> routes [ $ route ] = [ "class" => $ class , "action" => $ action , "parameters" => $ parameters , "hostparameters" => $ hostparameters ] ; return $ this ; }
docstring: add route to list of known routes
  
  @param String $route beginning string of the route
  @param String $class to be used for this route
  @param String $action method to be called
  @param string[] $parameters list of parameters that should be retrieved from url
  @param array $hostparameters - allows to use subdomains as parameters
  @return self
docstring_tokens: add route to list of known routes