File "LeaveProfileNode.php"

Full Path: /home/warrior1/public_html/languages/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/Profiler/Node/LeaveProfileNode.php
File size: 497 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace MailPoetVendor\Twig\Profiler\Node;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Twig\Compiler;
use MailPoetVendor\Twig\Node\Node;
class LeaveProfileNode extends Node
{
 public function __construct(string $varName)
 {
 parent::__construct([], ['var_name' => $varName]);
 }
 public function compile(Compiler $compiler) : void
 {
 $compiler->write("\n")->write(\sprintf("\$%s->leave(\$%s);\n\n", $this->getAttribute('var_name'), $this->getAttribute('var_name') . '_prof'));
 }
}