<?php
namespace MageWorx\OptionTemplates\Model\ResourceModel\Group\Option\Value;

/**
 * Interceptor class for @see \MageWorx\OptionTemplates\Model\ResourceModel\Group\Option\Value
 */
class Interceptor extends \MageWorx\OptionTemplates\Model\ResourceModel\Group\Option\Value implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\Framework\Model\ResourceModel\Db\Context $context, \Magento\Directory\Model\CurrencyFactory $currencyFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\App\Config\ScopeConfigInterface $config, \MageWorx\OptionBase\Model\Product\Option\Value\Attributes $optionValueAttributes, \Magento\Framework\Registry $registry, $connectionName = null)
    {
        $this->___init();
        parent::__construct($context, $currencyFactory, $storeManager, $config, $optionValueAttributes, $registry, $connectionName);
    }

    /**
     * {@inheritdoc}
     */
    public function duplicate(\Magento\Catalog\Model\Product\Option\Value $object, $oldOptionId, $newOptionId)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'duplicate');
        return $pluginInfo ? $this->___callPlugins('duplicate', func_get_args(), $pluginInfo) : parent::duplicate($object, $oldOptionId, $newOptionId);
    }
}
