<?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/LeadBundle/Event/ImportInitEvent.php */
class __TwigTemplate_3fe31cce8d763572398283a3aa9b6e4f920f4c6df069402c790f4086521c7b63 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

declare(strict_types=1);

namespace Mautic\\LeadBundle\\Event;

use Mautic\\CoreBundle\\Event\\CommonEvent;

final class ImportInitEvent extends CommonEvent
{
    public string \$routeObjectName;
    public bool \$objectSupported = false;
    public ?string \$objectSingular;
    public ?string \$objectName; // Object name for humans. Will go through translator.
    public ?string \$activeLink;
    public ?string \$indexRoute;
    public array \$indexRouteParams = [];

    public function __construct(string \$routeObjectName)
    {
        \$this->routeObjectName = \$routeObjectName;
    }

    public function setIndexRoute(?string \$indexRoute, array \$routeParams = [])
    {
        \$this->indexRoute       = \$indexRoute;
        \$this->indexRouteParams = \$routeParams;
    }

    /**
     * Check if the import is for said route object and notes if the object exist.
     */
    public function importIsForRouteObject(string \$routeObject): bool
    {
        if (\$this->routeObjectName === \$routeObject) {
            \$this->objectSupported = true;

            return true;
        }

        return false;
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/LeadBundle/Event/ImportInitEvent.php";
    }

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

    public function getSourceContext()
    {
        return new Source("", "@bundles/LeadBundle/Event/ImportInitEvent.php", "/var/www/mautic/app/bundles/LeadBundle/Event/ImportInitEvent.php");
    }
}
