Files
stemcell/app/code/Stemcell/Catalog/Api/TissueRepositoryInterface.php
T
2026-09-15 10:26:34 +08:00

63 lines
1.7 KiB
PHP

<?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);
}