<?php
namespace Amasty\Base\Model\Config\Backend\SystemInstanceKey;

/**
 * Interceptor class for @see \Amasty\Base\Model\Config\Backend\SystemInstanceKey
 */
class Interceptor extends \Amasty\Base\Model\Config\Backend\SystemInstanceKey implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\App\Config\ScopeConfigInterface $config, \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList, \Amasty\Base\Model\SysInfo\RegisteredInstanceRepository $registeredInstanceRepository)
    {
        $this->___init();
        parent::__construct($context, $registry, $config, $cacheTypeList, $registeredInstanceRepository);
    }

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

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