Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SynonymGroup.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Search\Model;
7 
10 
12 {
18  protected function _construct()
19  {
20  $this->_init(\Magento\Search\Model\ResourceModel\SynonymGroup::class);
21  }
22 
26  public function getGroupId()
27  {
28  return $this->getData('group_id');
29  }
30 
34  public function setGroupId($groupId)
35  {
36  $this->setData('group_id', $groupId);
37  return $this;
38  }
39 
43  public function getWebsiteId()
44  {
45  return $this->getData('website_id') === null ? 0 : $this->getData('website_id');
46  }
47 
51  public function setWebsiteId($websiteId)
52  {
53  $this->setData('website_id', $websiteId);
54  return $this;
55  }
56 
60  public function getStoreId()
61  {
62  return $this->getData('store_id') === null ? 0 : $this->getData('store_id');
63  }
64 
68  public function setStoreId($storeId)
69  {
70  $this->setData('store_id', $storeId);
71  return $this;
72  }
73 
77  public function getSynonymGroup()
78  {
79  return $this->getData('synonyms');
80  }
81 
85  public function setSynonymGroup($synonymGroup)
86  {
87  $this->setData('synonyms', $synonymGroup);
88  return $this;
89  }
90 
96  public function setScope()
97  {
98  $this->setData('scope_id', $this->getWebsiteId() . ':' . $this->getStoreId());
99  }
100 }
getData($key='', $index=null)
Definition: DataObject.php:119