Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
StockRepositoryInterface.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
27 {
36  public function save(\Magento\InventoryApi\Api\Data\StockInterface $stock): int;
37 
46  public function get(int $stockId): \Magento\InventoryApi\Api\Data\StockInterface;
47 
55  public function getList(
56  \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria = null
58 
67  public function deleteById(int $stockId): void;
68 }
getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria=null)
save(\Magento\InventoryApi\Api\Data\StockInterface $stock)
$searchCriteria
$stock