<?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/DataFixtures/ORM/LoadLeadListData.php */
class __TwigTemplate_0b17d575bc66c9cfd47852ab5b2e7f6b8c194163a315ce71259e2fc26fe13898 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\\LeadBundle\\DataFixtures\\ORM;

use Doctrine\\Common\\DataFixtures\\AbstractFixture;
use Doctrine\\Common\\DataFixtures\\OrderedFixtureInterface;
use Doctrine\\Persistence\\ObjectManager;
use Mautic\\LeadBundle\\Entity\\LeadList;
use Mautic\\LeadBundle\\Model\\ListModel;

class LoadLeadListData extends AbstractFixture implements OrderedFixtureInterface
{
    /**
     * @var ListModel
     */
    private \$segmentModel;

    /**
     * {@inheritdoc}
     */
    public function __construct(ListModel \$segmentModel)
    {
        \$this->segmentModel = \$segmentModel;
    }

    public function load(ObjectManager \$manager)
    {
        \$adminUser = \$this->getReference('admin-user');

        \$list = new LeadList();
        \$list->setName('United States');
        \$list->setPublicName('United States');
        \$list->setAlias('us');
        \$list->setCreatedBy(\$adminUser);
        \$list->setIsGlobal(true);
        \$list->setFilters([
            [
                'glue'     => 'and',
                'type'     => 'lookup',
                'field'    => 'country',
                'operator' => '=',
                'filter'   => 'United States',
                'display'  => '',
            ],
        ]);

        \$this->setReference('lead-list', \$list);
        \$manager->persist(\$list);
        \$manager->flush();

        \$this->segmentModel->rebuildListLeads(\$list);
    }

    /**
     * @return int
     */
    public function getOrder()
    {
        return 5;
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/LeadBundle/DataFixtures/ORM/LoadLeadListData.php";
    }

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

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