<?php
namespace Amasty\ElasticSearch\Model\Indexer\Data\Product\ProductDataMapper;

/**
 * Interceptor class for @see \Amasty\ElasticSearch\Model\Indexer\Data\Product\ProductDataMapper
 */
class Interceptor extends \Amasty\ElasticSearch\Model\Indexer\Data\Product\ProductDataMapper implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Amasty\ElasticSearch\Model\Indexer\Data\Product\AttributeDataProvider $attributeDataProvider, \Amasty\ElasticSearch\Model\ResourceModel\ConfigurableResolver $configurableResolver, array $excludedAttributes = [], ?\Amasty\ElasticSearch\Model\Indexer\Data\Product\Attribute\OptionsProvider $attributeOptionsProvider = null)
    {
        $this->___init();
        parent::__construct($attributeDataProvider, $configurableResolver, $excludedAttributes, $attributeOptionsProvider);
    }

    /**
     * {@inheritdoc}
     */
    public function map(array $documentData, $storeId, array $context = [])
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'map');
        return $pluginInfo ? $this->___callPlugins('map', func_get_args(), $pluginInfo) : parent::map($documentData, $storeId, $context);
    }
}
