ltsecurityinc安防产品在线商城代码
This commit is contained in:
+79
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package Elastic Search Base for Magento 2
|
||||
*/
|
||||
|
||||
namespace Amasty\ElasticSearch\Model;
|
||||
|
||||
use Amasty\ElasticSearch\Api\Data\StopWordInterface;
|
||||
|
||||
class StopWord extends \Magento\Framework\Model\AbstractModel implements StopWordInterface
|
||||
{
|
||||
/**
|
||||
* Model Init
|
||||
*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function _construct()
|
||||
{
|
||||
parent::_construct();
|
||||
$this->_init(\Amasty\ElasticSearch\Model\ResourceModel\StopWord::class);
|
||||
$this->setIdFieldName('stop_word_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function getStopWordId()
|
||||
{
|
||||
return $this->_getData(StopWordInterface::STOP_WORD_ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function setStopWordId($stopWordId)
|
||||
{
|
||||
$this->setData(StopWordInterface::STOP_WORD_ID, $stopWordId);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function getTerm()
|
||||
{
|
||||
return $this->_getData(StopWordInterface::TERM);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function setTerm($term)
|
||||
{
|
||||
$this->setData(StopWordInterface::TERM, $term);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function getStoreId()
|
||||
{
|
||||
return $this->_getData(StopWordInterface::STORE_ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function setStoreId($storeId)
|
||||
{
|
||||
$this->setData(StopWordInterface::STORE_ID, $storeId);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user