<?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/CampaignBundle/Event/CampaignTriggerEvent.php */
class __TwigTemplate_8ce541f49fef0911f6ef9ac213e9c0f03023a80168c107f14606c837a4d458ce 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\\CampaignBundle\\Event;

use Mautic\\CampaignBundle\\Entity\\Campaign;
use Symfony\\Component\\EventDispatcher\\Event;

class CampaignTriggerEvent extends Event
{
    /**
     * @var Campaign
     */
    protected \$campaign;

    /**
     * @var bool
     */
    protected \$triggerCampaign = true;

    public function __construct(Campaign \$campaign)
    {
        \$this->campaign = \$campaign;
    }

    /**
     * Returns the Campaign entity.
     *
     * @return Campaign
     */
    public function getCampaign()
    {
        return \$this->campaign;
    }

    /**
     * @return bool
     */
    public function shouldTrigger()
    {
        return \$this->triggerCampaign;
    }

    /**
     * Do not trigger this campaign.
     */
    public function doNotTrigger()
    {
        \$this->triggerCampaign = false;

        \$this->stopPropagation();
    }
}
";
    }

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

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

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