Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Title.php
Go to the documentation of this file.
1 <?php
15 
17 
19 {
24  const KEY_STORE_ID = 'store_id';
25  const KEY_VALUE_ID = 'value';
31  protected function _construct()
32  {
33  $this->_init(\Magento\Tax\Model\ResourceModel\Calculation\Rate\Title::class);
34  }
35 
40  public function deleteByRateId($rateId)
41  {
42  $this->getResource()->deleteByRateId($rateId);
43  return $this;
44  }
45 
50  public function getStoreId()
51  {
52  return $this->getData(self::KEY_STORE_ID);
53  }
54 
58  public function getValue()
59  {
60  return $this->getData(self::KEY_VALUE_ID);
61  }
62 
69  public function setStoreId($storeId)
70  {
71  return $this->setData(self::KEY_STORE_ID, $storeId);
72  }
73 
80  public function setValue($value)
81  {
82  return $this->setData(self::KEY_VALUE_ID, $value);
83  }
84 
85  // @codeCoverageIgnoreEnd
86 
92  public function getExtensionAttributes()
93  {
94  return $this->_getExtensionAttributes();
95  }
96 
103  public function setExtensionAttributes(\Magento\Tax\Api\Data\TaxRateTitleExtensionInterface $extensionAttributes)
104  {
105  return $this->_setExtensionAttributes($extensionAttributes);
106  }
107 }
_setExtensionAttributes(\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes)
$value
Definition: gender.phtml:16
setExtensionAttributes(\Magento\Tax\Api\Data\TaxRateTitleExtensionInterface $extensionAttributes)
Definition: Title.php:103