<?php
namespace Amasty\Gdpr\Block\AccountCheckbox;

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

    public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Amasty\Gdpr\Model\Consent\DataProvider\FrontendData $dataProvider, \Amasty\Gdpr\Model\Consent\DataProvider\ConsentPrivacyLinkResolver $consentPrivacyLinkResolver, $scope = 'registration', array $data = [])
    {
        $this->___init();
        parent::__construct($context, $dataProvider, $consentPrivacyLinkResolver, $scope, $data);
    }

    /**
     * {@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();
    }
}
