You are here

public function DumperCollection::add 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::add()

Adds a route or collection.

Parameters

DumperRoute|DumperCollection The route or collection:

File

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

Class

DumperCollection
Collection of routes.

Namespace

Symfony\Component\Routing\Matcher\Dumper

Code

public function add($child) {
  if ($child instanceof self) {
    $child
      ->setParent($this);
  }
  $this->children[] = $child;
}