Sets the parent RouteCollection. It's only used internally from one RouteCollection to another. It makes no sense to be available as part of the public API.
RouteCollection $parent The parent RouteCollection:
private function setParent(RouteCollection $parent) {
$this->parent = $parent;
}