<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* @bundles/EmailBundle/Stat/Reference.php */
class __TwigTemplate_ce7cd0b59620c65960491699b2d07772 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<?php

namespace Mautic\\EmailBundle\\Stat;

use Mautic\\EmailBundle\\Entity\\Stat;

class Reference
{
    /**
     * @var int
     */
    private \$emailId;

    /**
     * @var int
     */
    private \$leadId = 0;

    /**
     * @var int|null
     */
    private \$statId;

    public function __construct(Stat \$stat)
    {
        \$this->statId  = \$stat->getId();
        \$this->emailId = \$stat->getEmail()->getId();
        if (\$lead = \$stat->getLead()) {
            \$this->leadId = \$stat->getLead()->getId();
        }
    }

    /**
     * @return int
     */
    public function getEmailId()
    {
        return \$this->emailId;
    }

    /**
     * @return int
     */
    public function getLeadId()
    {
        return \$this->leadId;
    }

    /**
     * @return mixed
     */
    public function getStatId()
    {
        return \$this->statId;
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/EmailBundle/Stat/Reference.php";
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@bundles/EmailBundle/Stat/Reference.php", "/var/www/mautic/app/bundles/EmailBundle/Stat/Reference.php");
    }
}
