Files
2026-09-15 10:26:34 +08:00

149 lines
2.6 KiB
PHP

<?php
declare(strict_types=1);
namespace Stemcell\Customer\Model;
use Magento\Framework\Model\AbstractModel;
use Stemcell\Customer\Api\Data\SalespersonInterface;
class Salesperson extends AbstractModel implements SalespersonInterface
{
/**
* @inheritDoc
*/
public function _construct()
{
$this->_init(\Stemcell\Customer\Model\ResourceModel\Salesperson::class);
}
/**
* @inheritDoc
*/
public function getName()
{
return $this->getData(self::NAME);
}
/**
* @inheritDoc
*/
public function setName($name)
{
return $this->setData(self::NAME, $name);
}
/**
* @inheritDoc
*/
public function getEmail()
{
return $this->getData(self::EMAIL);
}
/**
* @inheritDoc
*/
public function setEmail($email)
{
return $this->setData(self::EMAIL, $email);
}
/**
* @inheritDoc
*/
public function getTelephone()
{
return $this->getData(self::TELEPHONE);
}
/**
* @inheritDoc
*/
public function setTelephone($telephone)
{
return $this->setData(self::TELEPHONE, $telephone);
}
/**
* @inheritDoc
*/
public function getRsmEmail()
{
return $this->getData(self::RSM_EMAIL);
}
/**
* @inheritDoc
*/
public function setRsmEmail($rsmEmail)
{
return $this->setData(self::RSM_EMAIL, $rsmEmail);
}
/**
* @inheritDoc
*/
public function getSisrEmail()
{
return $this->getData(self::SISR_EMAIL);
}
/**
* @inheritDoc
*/
public function setSisrEmail($sisrEmail)
{
return $this->setData(self::SISR_EMAIL, $sisrEmail);
}
/**
* @inheritDoc
*/
public function getCsrEmail()
{
return $this->getData(self::CSR_EMAIL);
}
/**
* @inheritDoc
*/
public function setCsrEmail($csrEmail)
{
return $this->setData(self::CSR_EMAIL, $csrEmail);
}
/**
* @inheritDoc
*/
public function getIsActive()
{
return $this->getData(self::IS_ACTIVE);
}
/**
* @inheritDoc
*/
public function setIsActive($isActive)
{
return $this->setData(self::IS_ACTIVE, $isActive);
}
/**
* @inheritDoc
*/
public function getSalespersonId()
{
return $this->getData(self::SALESPERSON_ID);
}
/**
* @inheritDoc
*/
public function setSalespersonId($salespersonId)
{
return $this->setData(self::SALESPERSON_ID, $salespersonId);
}
}