init
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Webinar\Api;
|
||||
|
||||
use Magento\Framework\Api\SearchCriteriaInterface;
|
||||
|
||||
interface WebinarRepositoryInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Save Webinar
|
||||
* @param \Stemcell\Webinar\Api\Data\WebinarInterface $webinar
|
||||
* @return \Stemcell\Webinar\Api\Data\WebinarInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function save(
|
||||
\Stemcell\Webinar\Api\Data\WebinarInterface $webinar
|
||||
);
|
||||
|
||||
/**
|
||||
* @param $value
|
||||
* @param $field
|
||||
*
|
||||
* @return \Stemcell\Webinar\Api\Data\WebinarInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function get($value, $field);
|
||||
|
||||
/**
|
||||
* Retrieve Webinar matching the specified criteria.
|
||||
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
* @return \Stemcell\Webinar\Api\Data\WebinarSearchResultsInterface
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function getList(
|
||||
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
|
||||
);
|
||||
|
||||
/**
|
||||
* Delete Webinar
|
||||
* @param \Stemcell\Webinar\Api\Data\WebinarInterface $webinar
|
||||
* @return bool true on success
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function delete(
|
||||
\Stemcell\Webinar\Api\Data\WebinarInterface $webinar
|
||||
);
|
||||
|
||||
/**
|
||||
* Delete Webinar by ID
|
||||
* @param string $webinarId
|
||||
* @return bool true on success
|
||||
* @throws \Magento\Framework\Exception\NoSuchEntityException
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
public function deleteById($webinarId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user