<?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/Doctrine/QueryFormatter/MysqlFormatter.php */
class __TwigTemplate_a1f360a6212b358d54298608c6b4951f53aaa7d83bb766d6e394fb1a20418bef 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\\Doctrine\\QueryFormatter;

/**
 * Help generate SQL statements to format column data.
 *
 * Class AbstractFormat
 */
class MysqlFormatter extends AbstractFormatter
{
    /**
     * Format field to datetime.
     *
     * @param        \$field
     * @param string \$format
     *
     * @return mixed
     */
    public function toDateTime(\$field, \$format = '%Y-%m-%d %k:%i:%s')
    {
        return \"STR_TO_DATE(\$field, '\$format')\";
    }

    /**
     * Format field to date.
     *
     * @param        \$field
     * @param string \$format
     *
     * @return mixed
     */
    public function toDate(\$field, \$format = '%Y-%m-%d')
    {
        return \"STR_TO_DATE(\$field, '\$format')\";
    }

    /**
     * Format field to time.
     *
     * @param        \$field
     * @param string \$format
     *
     * @return mixed
     */
    public function toTime(\$field, \$format = '%k:%i:%s')
    {
        return \"STR_TO_DATE(\$field, '\$format')\";
    }

    /**
     * Format field to a numeric.
     *
     * @param \$field
     *
     * @return mixed
     */
    public function toNumeric(\$field)
    {
        return \$field;
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/CoreBundle/Doctrine/QueryFormatter/MysqlFormatter.php";
    }

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

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