You are here

public function Profile::addChild in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Profiler/Profile.php \Symfony\Component\HttpKernel\Profiler\Profile::addChild()

Adds the child token.

Parameters

Profile $child The child Profile:

1 call to Profile::addChild()
Profile::setChildren in vendor/symfony/http-kernel/Profiler/Profile.php
Sets children profiler.

File

vendor/symfony/http-kernel/Profiler/Profile.php, line 219

Class

Profile
Profile.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function addChild(Profile $child) {
  $this->children[] = $child;
  $child
    ->setParent($this);
}