Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ProductRepositoryInterface.php
Go to the documentation of this file.
1 <?php
8 namespace Magento\Catalog\Api;
9 
15 {
26  public function save(\Magento\Catalog\Api\Data\ProductInterface $product, $saveOptions = false);
27 
38  public function get($sku, $editMode = false, $storeId = null, $forceReload = false);
39 
50  public function getById($productId, $editMode = false, $storeId = null, $forceReload = false);
51 
60 
67  public function deleteById($sku);
68 
75  public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
76 }
$searchCriteria
getById($productId, $editMode=false, $storeId=null, $forceReload=false)
save(\Magento\Catalog\Api\Data\ProductInterface $product, $saveOptions=false)
getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria)