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 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user