<?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/FormBundle/Model/SubmissionResultLoader.php */
class __TwigTemplate_781a14ab22129caf5de9a269a149c0bcd426e0d4d7c118f0ad9accbeb416a421 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\\FormBundle\\Model;

use Doctrine\\ORM\\EntityManager;
use Mautic\\FormBundle\\Entity\\Submission;
use Mautic\\FormBundle\\Entity\\SubmissionRepository;

class SubmissionResultLoader
{
    /**
     * @var EntityManager
     */
    private \$entityManager;

    public function __construct(
        EntityManager \$entityManager
    ) {
        \$this->entityManager = \$entityManager;
    }

    /**
     * @param int \$id
     *
     * @return Submission|null
     */
    public function getSubmissionWithResult(\$id)
    {
        \$repository = \$this->getRepository();

        return \$repository->getEntity(\$id);
    }

    /**
     * @return SubmissionRepository
     */
    private function getRepository()
    {
        return \$this->entityManager->getRepository(Submission::class);
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/FormBundle/Model/SubmissionResultLoader.php";
    }

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

    public function getSourceContext()
    {
        return new Source("", "@bundles/FormBundle/Model/SubmissionResultLoader.php", "/var/www/mautic/app/bundles/FormBundle/Model/SubmissionResultLoader.php");
    }
}
