<?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/PluginBundle/Event/PluginUpdateEvent.php */
class __TwigTemplate_7474c1c883829560829fa09d28f7108d4673d5674e2c85c89b42410495b01f74 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\\PluginBundle\\Event;

use Mautic\\PluginBundle\\Entity\\Plugin;
use Symfony\\Contracts\\EventDispatcher\\Event;

class PluginUpdateEvent extends Event
{
    private Plugin \$plugin;
    private string \$oldVersion;

    public function __construct(Plugin \$plugin, string \$oldVersion)
    {
        \$this->plugin     = \$plugin;
        \$this->oldVersion = \$oldVersion;
    }

    public function getPlugin(): Plugin
    {
        return \$this->plugin;
    }

    public function getOldVersion(): string
    {
        return \$this->oldVersion;
    }

    public function checkContext(string \$pluginName): bool
    {
        return \$pluginName === \$this->plugin->getName();
    }
}
";
    }

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

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

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