| Current Path : /home/rtorresani/www/vendor/magento/module-catalog-import-export/Model/ |
| 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);
}
}