![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-tax/Model/Calculation/Rate/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * Tax Rate Title Model * * @method int getTaxCalculationRateId() * * @author Magento Core Team <[email protected]> */ namespace Magento\Tax\Model\Calculation\Rate; use Magento\Tax\Api\Data\TaxRateTitleInterface; class Title extends \Magento\Framework\Model\AbstractExtensibleModel implements TaxRateTitleInterface { /**#@+ * * Tax rate field key. */ const KEY_STORE_ID = 'store_id'; const KEY_VALUE_ID = 'value'; /**#@-*/ /** * @return void */ protected function _construct() { $this->_init(\Magento\Tax\Model\ResourceModel\Calculation\Rate\Title::class); } /** * @param int $rateId * @return $this */ public function deleteByRateId($rateId) { $this->getResource()->deleteByRateId($rateId); return $this; } /** * @codeCoverageIgnoreStart * {@inheritdoc} */ public function getStoreId() { return $this->getData(self::KEY_STORE_ID); } /** * {@inheritdoc} */ public function getValue() { return $this->getData(self::KEY_VALUE_ID); } /** * Set store id * * @param string $storeId * @return $this */ public function setStoreId($storeId) { return $this->setData(self::KEY_STORE_ID, $storeId); } /** * Set title value * * @param string $value * @return string */ public function setValue($value) { return $this->setData(self::KEY_VALUE_ID, $value); } // @codeCoverageIgnoreEnd /** * {@inheritdoc} * * @return \Magento\Tax\Api\Data\TaxRateTitleExtensionInterface|null */ public function getExtensionAttributes() { return $this->_getExtensionAttributes(); } /** * {@inheritdoc} * * @param \Magento\Tax\Api\Data\TaxRateTitleExtensionInterface $extensionAttributes * @return $this */ public function setExtensionAttributes(\Magento\Tax\Api\Data\TaxRateTitleExtensionInterface $extensionAttributes) { return $this->_setExtensionAttributes($extensionAttributes); } }