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

68 lines
1.9 KiB
PHP

<?php
declare(strict_types=1);
namespace Stemcell\Customer\Api;
use Magento\Framework\Api\SearchCriteriaInterface;
interface AvatrRepositoryInterface
{
/**
* Save Avatr
* @param \Stemcell\Customer\Api\Data\AvatrInterface $avatr
* @return \Stemcell\Customer\Api\Data\AvatrInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function save(
\Stemcell\Customer\Api\Data\AvatrInterface $avatr
);
/**
* Retrieve Avatr
* @param string $avatrId
* @return \Stemcell\Customer\Api\Data\AvatrInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function get($avatrId);
/**
* Retrieve Clue
* @param string $telephone
* @param string $model
* @return \Stemcell\Customer\Api\Data\AvatrInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getByTelephone(string $telephone, string $model): Data\AvatrInterface;
/**
* Retrieve Avatr matching the specified criteria.
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
* @return \Stemcell\Customer\Api\Data\AvatrSearchResultsInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getList(
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
);
/**
* Delete Avatr
* @param \Stemcell\Customer\Api\Data\AvatrInterface $avatr
* @return bool true on success
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function delete(
\Stemcell\Customer\Api\Data\AvatrInterface $avatr
);
/**
* Delete Avatr by ID
* @param string $avatrId
* @return bool true on success
* @throws \Magento\Framework\Exception\NoSuchEntityException
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function deleteById($avatrId);
}