<?php
namespace Amasty\ShopbySeo\Model\SeoOptionsModifier\UniqueBuilder;

/**
 * Interceptor class for @see \Amasty\ShopbySeo\Model\SeoOptionsModifier\UniqueBuilder
 */
class Interceptor extends \Amasty\ShopbySeo\Model\SeoOptionsModifier\UniqueBuilder implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\Catalog\Model\Product\Url $productUrl, ?\Amasty\ShopbySeo\Model\ConfigProvider $configProvider)
    {
        $this->___init();
        parent::__construct($productUrl, $configProvider);
    }

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