12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- declare(strict_types=1);
- namespace Magento\Inventory\Model\ResourceModel;
- use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
- use Magento\InventoryApi\Api\Data\StockInterface;
- use Magento\Framework\Model\ResourceModel\PredefinedId;
- /**
- * Implementation of basic operations for Stock entity for specific db layer
- */
- class Stock extends AbstractDb
- {
- /**
- * Provides possibility of saving entity with predefined/pre-generated id
- */
- use PredefinedId;
- /**#@+
- * Constants related to specific db layer
- */
- const TABLE_NAME_STOCK = 'inventory_stock';
- /**#@-*/
- /**
- * @inheritdoc
- */
- protected function _construct()
- {
- $this->_init(self::TABLE_NAME_STOCK, StockInterface::STOCK_ID);
- }
- }
|