You are here

public function Twig_Profiler_Profile::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Profiler/Profile.php \Twig_Profiler_Profile::__construct()

File

vendor/twig/twig/lib/Twig/Profiler/Profile.php, line 29

Class

Twig_Profiler_Profile
@author Fabien Potencier <fabien@symfony.com>

Code

public function __construct($template = 'main', $type = self::ROOT, $name = 'main') {
  $this->template = $template;
  $this->type = $type;
  $this->name = 0 === strpos($name, '__internal_') ? 'INTERNAL' : $name;
  $this
    ->enter();
}