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\Catalog\Api;
|
||||
|
||||
use Magento\Framework\Api\SearchCriteriaInterface;
|
||||
|
||||
interface TissueRepositoryInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Save Tissue
|
||||
* @param \Stemcell\Catalog\Api\Data\TissueInterface $tissue
|
||||
* @return \Stemcell\Catalog\Api\Data\TissueInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function save(
|
||||
\Stemcell\Catalog\Api\Data\TissueInterface $tissue
|
||||
);
|
||||
|
||||
/**
|
||||
* Retrieve Tissue
|
||||
* @param string $tissueId
|
||||
* @return \Stemcell\Catalog\Api\Data\TissueInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function get($tissueId);
|
||||
|
||||
/**
|
||||
* Retrieve Tissue matching the specified criteria.
|
||||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
* @return \Stemcell\Catalog\Api\Data\TissueSearchResultsInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function getList(
|
||||
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
);
|
||||
|
||||
/**
|
||||
* Delete Tissue
|
||||
* @param \Stemcell\Catalog\Api\Data\TissueInterface $tissue
|
||||
* @return bool true on success
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function delete(
|
||||
\Stemcell\Catalog\Api\Data\TissueInterface $tissue
|
||||
);
|
||||
|
||||
/**
|
||||
* Delete Tissue by ID
|
||||
* @param string $tissueId
|
||||
* @return bool true on success
|
||||
* @throws \Magento\Framework\Exception\NoSuchEntityException
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function deleteById($tissueId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user