6 declare(strict_types=1);
10 use Magento\InventoryApi\Api\Data\StockInterfaceFactory;
15 $stockFactory = Bootstrap::getObjectManager()->get(StockInterfaceFactory::class);
19 $stockRepository = Bootstrap::getObjectManager()->get(StockRepositoryInterface::class);
24 StockInterface::STOCK_ID => 10,
25 StockInterface::NAME =>
'EU-stock',
28 StockInterface::STOCK_ID => 20,
29 StockInterface::NAME =>
'US-stock',
32 StockInterface::STOCK_ID => 30,
33 StockInterface::NAME =>
'Global-stock',