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

63 lines
1.8 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 CryopreserveRepositoryInterface
{
/**
* Save cryopreserve
* @param \Stemcell\Catalog\Api\Data\CryopreserveInterface $cryopreserve
* @return \Stemcell\Catalog\Api\Data\CryopreserveInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function save(
\Stemcell\Catalog\Api\Data\CryopreserveInterface $cryopreserve
);
/**
* Retrieve cryopreserve
* @param string $cryopreserveId
* @return \Stemcell\Catalog\Api\Data\CryopreserveInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function get($cryopreserveId);
/**
* Retrieve cryopreserve matching the specified criteria.
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
* @return \Stemcell\Catalog\Api\Data\CryopreserveSearchResultsInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getList(
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
);
/**
* Delete cryopreserve
* @param \Stemcell\Catalog\Api\Data\CryopreserveInterface $cryopreserve
* @return bool true on success
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function delete(
\Stemcell\Catalog\Api\Data\CryopreserveInterface $cryopreserve
);
/**
* Delete cryopreserve by ID
* @param string $cryopreserveId
* @return bool true on success
* @throws \Magento\Framework\Exception\NoSuchEntityException
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function deleteById($cryopreserveId);
}