21 parent::__construct(array(), array(
'extension_name' => $extensionName,
'name' =>
$name,
'type' =>
$type,
'var_name' => $varName));
30 ->write(
sprintf(
'$%s->enter($%s = new Twig_Profiler_Profile($this->getTemplateName(), ', $this->
getAttribute(
'var_name'), $this->
getAttribute(
'var_name').
'_prof'))
39class_alias(
'Twig_Profiler_Node_EnterProfile',
'Twig\Profiler\Node\EnterProfileNode',
false);
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
Compiles a node to PHP code.
write()
Writes a string to the compiled code by adding indentation.
Represents a node in the AST.
Represents a profile enter node.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
__construct($extensionName, $type, $name, $varName)