You are here

public function DumperCollection::getRoot in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Matcher/Dumper/DumperCollection.php \Symfony\Component\Routing\Matcher\Dumper\DumperCollection::getRoot()

Returns the root of the collection.

Return value

DumperCollection The root collection

File

vendor/symfony/routing/Matcher/Dumper/DumperCollection.php, line 91

Class

DumperCollection
Collection of routes.

Namespace

Symfony\Component\Routing\Matcher\Dumper

Code

public function getRoot() {
  return null !== $this->parent ? $this->parent
    ->getRoot() : $this;
}