init
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\SubItemProduct\Api;
|
||||
|
||||
use Magento\Framework\Api\SearchCriteriaInterface;
|
||||
|
||||
interface SubItemRepositoryInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Save SubItem
|
||||
* @param \Stemcell\SubItemProduct\Api\Data\SubItemInterface $subItem
|
||||
* @return \Stemcell\SubItemProduct\Api\Data\SubItemInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function save(
|
||||
\Stemcell\SubItemProduct\Api\Data\SubItemInterface $subItem
|
||||
);
|
||||
|
||||
/**
|
||||
* Retrieve SubItem
|
||||
* @param string $subitemId
|
||||
* @return \Stemcell\SubItemProduct\Api\Data\SubItemInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function get($subitemId);
|
||||
|
||||
/**
|
||||
* Retrieve SubItem matching the specified criteria.
|
||||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
* @return \Stemcell\SubItemProduct\Api\Data\SubItemSearchResultsInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function getList(
|
||||
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
);
|
||||
|
||||
/**
|
||||
* Delete SubItem
|
||||
* @param \Stemcell\SubItemProduct\Api\Data\SubItemInterface $subItem
|
||||
* @return bool true on success
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function delete(
|
||||
\Stemcell\SubItemProduct\Api\Data\SubItemInterface $subItem
|
||||
);
|
||||
|
||||
/**
|
||||
* Delete SubItem by ID
|
||||
* @param string $subitemId
|
||||
* @return bool true on success
|
||||
* @throws \Magento\Framework\Exception\NoSuchEntityException
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function deleteById($subitemId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user