<?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/SmsBundle/Callback/HandlerContainer.php */
class __TwigTemplate_a30652f2206ed0ad07c0bbeee8e30c60e21dc20a11fd1d87d8e8ef94e7b1340a 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\\SmsBundle\\Callback;

use Mautic\\SmsBundle\\Exception\\CallbackHandlerNotFound;

class HandlerContainer
{
    /**
     * @var CallbackInterface[]
     */
    private \$handlers;

    public function registerHandler(CallbackInterface \$handler)
    {
        \$this->handlers[\$handler->getTransportName()] = \$handler;
    }

    /**
     * @param \$transportName
     *
     * @return CallbackInterface
     *
     * @throws CallbackHandlerNotFound
     */
    public function getHandler(\$transportName)
    {
        if (!isset(\$this->handlers[\$transportName])) {
            throw new CallbackHandlerNotFound(\"\$transportName has not been registered\");
        }

        return \$this->handlers[\$transportName];
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/SmsBundle/Callback/HandlerContainer.php";
    }

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

    public function getSourceContext()
    {
        return new Source("", "@bundles/SmsBundle/Callback/HandlerContainer.php", "/var/www/mautic/app/bundles/SmsBundle/Callback/HandlerContainer.php");
    }
}
