Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-inventory
Model
ResourceModel
Stock.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Inventory\Model\ResourceModel
;
9
10
use
Magento\Framework\Model\ResourceModel\Db\AbstractDb
;
11
use
Magento\InventoryApi\Api\Data\StockInterface
;
12
use Magento\Framework\Model\ResourceModel\PredefinedId;
13
17
class
Stock
extends
AbstractDb
18
{
22
use PredefinedId;
23
27
const
TABLE_NAME_STOCK
=
'inventory_stock'
;
33
protected
function
_construct
()
34
{
35
$this->
_init
(self::TABLE_NAME_STOCK,
StockInterface::STOCK_ID
);
36
}
37
}
Magento\Inventory\Model\ResourceModel\Stock\TABLE_NAME_STOCK
const TABLE_NAME_STOCK
Definition:
Stock.php:27
Magento\InventoryApi\Api\Data\StockInterface\STOCK_ID
const STOCK_ID
Definition:
StockInterface.php:22
Magento\InventoryApi\Api\Data\StockInterface
Definition:
StockInterface.php:17
Magento\Framework\Model\ResourceModel\Db\AbstractDb\_init
_init($mainTable, $idFieldName)
Definition:
AbstractDb.php:186
Magento\Framework\Model\ResourceModel\Db\AbstractDb
Definition:
AbstractDb.php:24
Magento\Inventory\Model\ResourceModel\Stock\_construct
_construct()
Definition:
Stock.php:33
Magento\Inventory\Model\ResourceModel
Definition:
GetSourceCodesBySkus.php:8
Magento\Inventory\Model\ResourceModel\Stock
Definition:
Stock.php:17