collection = new RouteCollection(); } /** * @param string $path */ public function addRoutes($path): void { $this->collection->addCollection($this->loader->import($path)); } /** * @return RouteCollection */ public function getCollection() { return $this->collection; } /** * @return string */ public function getType() { return $this->type; } }