Your IP : 216.73.217.95


Current Path : /home/rtorresani/www/vendor/magento/module-catalog-import-export/Model/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-catalog-import-export/Model/StockItemProcessor.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\CatalogImportExport\Model;

class StockItemProcessor implements StockItemProcessorInterface
{
    /**
     * @var StockItemImporterInterface
     */
    private $stockItemImporter;

    /**
     * @param StockItemImporterInterface $stockItemImporter
     */
    public function __construct(
        StockItemImporterInterface $stockItemImporter
    ) {
        $this->stockItemImporter = $stockItemImporter;
    }

    /**
     * @inheritdoc
     */
    public function process(array $stockData, array $importedData): void
    {
        $this->stockItemImporter->import($stockData);
    }
}