code: protected function collect()
      {
          $collector = new RouteCollector;
  
          foreach ($this->router->routes() as $route) {
              $collector->addRoute($route[0], $route[1], $route[2]);
          }
  
          return $collector->getData();
      }
docs: Collects the specified routes and generates a data for it.
  
  @return \Phroute\Phroute\RouteDataArray