79 \
Magento\Framework\Data\Collection\AbstractDb $resourceCollection =
null,
82 $this->_storesConfig = $storesConfig;
110 return $this->setCustomerGroupCode(
$value);
120 return $this->getCustomerGroupCode();
130 $taxClassName = $this->
getData(
'tax_class_name');
132 return $taxClassName;
134 $classModel = $this->classModelFactory->create();
135 $classModel->load($this->getTaxClassId());
136 $taxClassName = $classModel->getClassName();
137 $this->
setData(
'tax_class_name', $taxClassName);
138 return $taxClassName;
148 $data = $this->_storesConfig->getStoresConfigByPath(
165 return parent::beforeSave();
175 $this->
setCode(substr($this->
getCode(), 0, self::GROUP_CODE_MAX_LENGTH));
setData($key, $value=null)
getData($key='', $index=null)
const XML_PATH_DEFAULT_ID
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Store\Model\StoresConfig $storesConfig, \Magento\Framework\Reflection\DataObjectProcessor $dataObjectProcessor, \Magento\Tax\Model\ClassModelFactory $classModelFactory, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])
const GROUP_CODE_MAX_LENGTH