12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Tax\Model\ResourceModel;
- /**
- * Tax class resource
- *
- * @author Magento Core Team <core@magentocommerce.com>
- */
- class TaxClass extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
- {
- /**
- * Resource initialization
- *
- * @return void
- */
- public function _construct()
- {
- $this->_init('tax_class', 'class_id');
- }
- /**
- * Initialize unique fields
- *
- * @return $this
- */
- protected function _initUniqueFields()
- {
- $this->_uniqueFields = [
- [
- 'field' => ['class_type', 'class_name'],
- 'title' => __('Class name and class type'),
- ],
- ];
- return $this;
- }
- }
|