<?php
namespace Amasty\Promo\Block\Add;

/**
 * Interceptor class for @see \Amasty\Promo\Block\Add
 */
class Interceptor extends \Amasty\Promo\Block\Add implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Amasty\Promo\Helper\Data $promoHelper, \Magento\Framework\Url\Helper\Data $urlHelper, \Amasty\Promo\Model\Config $config, array $data = [], ?\Amasty\Promo\Block\PopupLinkEscaper $popupLinkEscaper = null, ?\Amasty\Promo\Model\Storage $storage = null)
    {
        $this->___init();
        parent::__construct($context, $promoHelper, $urlHelper, $config, $data, $popupLinkEscaper, $storage);
    }

    /**
     * {@inheritdoc}
     */
    public function fetchView($fileName)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'fetchView');
        return $pluginInfo ? $this->___callPlugins('fetchView', func_get_args(), $pluginInfo) : parent::fetchView($fileName);
    }

    /**
     * {@inheritdoc}
     */
    public function toHtml()
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'toHtml');
        return $pluginInfo ? $this->___callPlugins('toHtml', func_get_args(), $pluginInfo) : parent::toHtml();
    }
}
