Gets the root RouteCollection of the tree.
RouteCollection The root RouteCollection
public function getRoot() { $parent = $this; while ($parent ->getParent()) { $parent = $parent ->getParent(); } return $parent; }