init
This commit is contained in:
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Webinar\Api\Data;
|
||||
|
||||
interface WebinarInterface
|
||||
{
|
||||
const CUSTOMER_ID = 'customer_id';
|
||||
const EMAIL = 'email';
|
||||
const NAME = 'name';
|
||||
const MOBILE = 'mobile';
|
||||
const COMPANY = 'company';
|
||||
const TITLE = 'title';
|
||||
const STATE = 'state';
|
||||
const CITY = 'city';
|
||||
const STREET = 'street';
|
||||
const ZIP = 'zip';
|
||||
const FROM = 'from';
|
||||
const REMARK = 'remark';
|
||||
|
||||
/**
|
||||
* Get email
|
||||
* @return string|null
|
||||
*/
|
||||
public function getEmail();
|
||||
|
||||
/**
|
||||
* Set email
|
||||
* @param string $email
|
||||
* @return self
|
||||
*/
|
||||
public function setEmail(string $email);
|
||||
|
||||
/**
|
||||
* @param int $customerId
|
||||
* @return self
|
||||
*/
|
||||
public function setCustomerId(int $customerId);
|
||||
|
||||
/**
|
||||
* @return int | null
|
||||
*/
|
||||
public function getCustomerId(): ?int;
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return self
|
||||
*/
|
||||
public function setName(string $name);
|
||||
|
||||
/**
|
||||
* @return string | null
|
||||
*/
|
||||
public function getName(): ?string;
|
||||
|
||||
/**
|
||||
* @param string $mobile
|
||||
* @return self
|
||||
*/
|
||||
public function setMobile(string $mobile);
|
||||
|
||||
/**
|
||||
* @return string | null
|
||||
*/
|
||||
public function getMobile();
|
||||
|
||||
/**
|
||||
* @param string $company
|
||||
* @return self
|
||||
*/
|
||||
public function setCompany(string $company);
|
||||
|
||||
/**
|
||||
* @return string | null
|
||||
*/
|
||||
public function getCompany();
|
||||
|
||||
/**
|
||||
* @param string $title
|
||||
* @return self
|
||||
*/
|
||||
public function setTitle(string $title);
|
||||
|
||||
/**
|
||||
* @return string | null
|
||||
*/
|
||||
public function getTitle();
|
||||
|
||||
/**
|
||||
* @param string $state
|
||||
* @return self
|
||||
*/
|
||||
public function setState(string $state);
|
||||
|
||||
/**
|
||||
* @return string | null
|
||||
*/
|
||||
public function getState();
|
||||
|
||||
/**
|
||||
* @param string $city
|
||||
* @return self
|
||||
*/
|
||||
public function setCity(string $city);
|
||||
|
||||
/**
|
||||
* @return string | null
|
||||
*/
|
||||
public function getCity();
|
||||
|
||||
/**
|
||||
* @param string $street
|
||||
* @return self
|
||||
*/
|
||||
public function setStreet(string $street);
|
||||
|
||||
/**
|
||||
* @return string | null
|
||||
*/
|
||||
public function getStreet();
|
||||
|
||||
/**
|
||||
* @param string $zip
|
||||
* @return self
|
||||
*/
|
||||
public function setZip(string $zip);
|
||||
|
||||
/**
|
||||
* @return string | null
|
||||
*/
|
||||
public function getZip();
|
||||
|
||||
/**
|
||||
* @param string $from
|
||||
* @return self
|
||||
*/
|
||||
public function setFrom(string $from);
|
||||
|
||||
/**
|
||||
* @return string | null
|
||||
*/
|
||||
public function getFrom();
|
||||
|
||||
/**
|
||||
* @param string $remark
|
||||
* @return self
|
||||
*/
|
||||
public function setRemark(string $remark);
|
||||
|
||||
/**
|
||||
* @return string | null
|
||||
*/
|
||||
public function getRemark();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Webinar\Api\Data;
|
||||
|
||||
interface WebinarSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Get Webinar list.
|
||||
* @return \Stemcell\Webinar\Api\Data\WebinarInterface[]
|
||||
*/
|
||||
public function getItems();
|
||||
|
||||
/**
|
||||
* Set entity_id list.
|
||||
* @param \Stemcell\Webinar\Api\Data\WebinarInterface[] $items
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems(array $items);
|
||||
}
|
||||
|
||||
@@ -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