63 lines
2.0 KiB
PHP
63 lines
2.0 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 ExperimentalSchemeRepositoryInterface
|
|
{
|
|
|
|
/**
|
|
* Save ExperimentalScheme
|
|
* @param \Stemcell\Catalog\Api\Data\ExperimentalSchemeInterface $experimentalScheme
|
|
* @return \Stemcell\Catalog\Api\Data\ExperimentalSchemeInterface
|
|
* @throws \Magento\Framework\Exception\LocalizedException
|
|
*/
|
|
public function save(
|
|
\Stemcell\Catalog\Api\Data\ExperimentalSchemeInterface $experimentalScheme
|
|
);
|
|
|
|
/**
|
|
* Retrieve ExperimentalScheme
|
|
* @param string $experimentalschemeId
|
|
* @return \Stemcell\Catalog\Api\Data\ExperimentalSchemeInterface
|
|
* @throws \Magento\Framework\Exception\LocalizedException
|
|
*/
|
|
public function get($experimentalschemeId);
|
|
|
|
/**
|
|
* Retrieve ExperimentalScheme matching the specified criteria.
|
|
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
|
* @return \Stemcell\Catalog\Api\Data\ExperimentalSchemeSearchResultsInterface
|
|
* @throws \Magento\Framework\Exception\LocalizedException
|
|
*/
|
|
public function getList(
|
|
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
|
);
|
|
|
|
/**
|
|
* Delete ExperimentalScheme
|
|
* @param \Stemcell\Catalog\Api\Data\ExperimentalSchemeInterface $experimentalScheme
|
|
* @return bool true on success
|
|
* @throws \Magento\Framework\Exception\LocalizedException
|
|
*/
|
|
public function delete(
|
|
\Stemcell\Catalog\Api\Data\ExperimentalSchemeInterface $experimentalScheme
|
|
);
|
|
|
|
/**
|
|
* Delete ExperimentalScheme by ID
|
|
* @param string $experimentalschemeId
|
|
* @return bool true on success
|
|
* @throws \Magento\Framework\Exception\NoSuchEntityException
|
|
* @throws \Magento\Framework\Exception\LocalizedException
|
|
*/
|
|
public function deleteById($experimentalschemeId);
|
|
}
|
|
|