<?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/CoreBundle/Event/GlobalSearchEvent.php */
class __TwigTemplate_7b684479cb8369f5a599a1193eefdca68e4406bf2605f558d27c48cd813dbf53 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\\CoreBundle\\Event;

use Symfony\\Component\\EventDispatcher\\Event;

/**
 * Class GlobalSearchEvent.
 */
class GlobalSearchEvent extends Event
{
    /**
     * @var array
     */
    protected \$results = [];

    /**
     * @var string
     */
    protected \$searchString;

    /**
     * @var \\Symfony\\Bundle\\FrameworkBundle\\Translation\\Translator
     */
    protected \$translator;

    /**
     * @param string                                                 \$searchString
     * @param \\Symfony\\Bundle\\FrameworkBundle\\Translation\\Translator \$translator
     */
    public function __construct(\$searchString, \$translator)
    {
        \$this->searchString = strtolower(trim(strip_tags(\$searchString)));
        \$this->translator   = \$translator;
    }

    /**
     * Returns the string to be searched.
     *
     * @return string
     */
    public function getSearchString()
    {
        return \$this->searchString;
    }

    /**
     * Add an array of results from a search query to be listed in right side panel
     * Each result should be the ENTIRE html to be rendered.
     *
     * @param string \$header  String name for section header
     * @param array  \$results Array of HTML output that will be wrapped in <li /> elements
     */
    public function addResults(\$header, array \$results)
    {
        \$header                 = \$this->translator->trans(\$header);
        \$this->results[\$header] = \$results;
    }

    /**
     * Returns the results.
     *
     * @return array
     */
    public function getResults()
    {
        uksort(\$this->results, 'strnatcmp');

        return \$this->results;
    }
}
";
    }

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

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

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