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-catalog-inventory
Api
Data
StockStatusInterface.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\CatalogInventory\Api\Data
;
7
8
use
Magento\Framework\Api\ExtensibleDataInterface
;
9
19
interface
StockStatusInterface
extends
ExtensibleDataInterface
20
{
24
const
STATUS_OUT_OF_STOCK
= 0;
25
26
const
STATUS_IN_STOCK
= 1;
32
const
PRODUCT_ID
=
'product_id'
;
33
const
STOCK_ID
=
'stock_id'
;
34
const
QTY
=
'qty'
;
35
const
STOCK_STATUS
=
'stock_status'
;
36
const
STOCK_ITEM
=
'stock_item'
;
37
43
public
function
getProductId
();
44
49
public
function
setProductId
(
$productId
);
50
54
public
function
getStockId
();
55
60
public
function
setStockId
($stockId);
61
65
public
function
getQty
();
66
71
public
function
setQty
($qty);
72
76
public
function
getStockStatus
();
77
82
public
function
setStockStatus
($stockStatus);
83
87
public
function
getStockItem
();
88
94
public
function
getExtensionAttributes
();
95
102
public
function
setExtensionAttributes
(
103
\
Magento
\CatalogInventory\Api\Data\StockStatusExtensionInterface
$extensionAttributes
104
);
105
}
Magento\CatalogInventory\Api\Data\StockStatusInterface\getStockId
getStockId()
Magento\CatalogInventory\Api\Data\StockStatusInterface\getStockStatus
getStockStatus()
$productId
$productId
Definition:
website_attribute_sync.php:26
Magento\CatalogInventory\Api\Data
Definition:
StockCollectionInterface.php:10
Magento\CatalogInventory\Api\Data\StockStatusInterface\PRODUCT_ID
const PRODUCT_ID
Definition:
StockStatusInterface.php:32
Magento\CatalogInventory\Api\Data\StockStatusInterface\getExtensionAttributes
getExtensionAttributes()
Magento\CatalogInventory\Api\Data\StockStatusInterface\setProductId
setProductId($productId)
Magento\CatalogInventory\Api\Data\StockStatusInterface\getProductId
getProductId()
Magento\CatalogInventory\Api\Data\StockStatusInterface\STOCK_STATUS
const STOCK_STATUS
Definition:
StockStatusInterface.php:35
Magento\CatalogInventory\Api\Data\StockStatusInterface\STOCK_ITEM
const STOCK_ITEM
Definition:
StockStatusInterface.php:36
Magento\CatalogInventory\Api\Data\StockStatusInterface\STATUS_IN_STOCK
const STATUS_IN_STOCK
Definition:
StockStatusInterface.php:26
Magento\CatalogInventory\Api\Data\StockStatusInterface\setExtensionAttributes
setExtensionAttributes(\Magento\CatalogInventory\Api\Data\StockStatusExtensionInterface $extensionAttributes)
Magento\CatalogInventory\Api\Data\StockStatusInterface\getStockItem
getStockItem()
Magento\CatalogInventory\Api\Data\StockStatusInterface\STOCK_ID
const STOCK_ID
Definition:
StockStatusInterface.php:33
$extensionAttributes
$extensionAttributes
Definition:
payment.php:22
Magento\CatalogInventory\Api\Data\StockStatusInterface
Definition:
StockStatusInterface.php:19
Magento
Magento\CatalogInventory\Api\Data\StockStatusInterface\setStockStatus
setStockStatus($stockStatus)
Magento\Framework\Api\ExtensibleDataInterface
Definition:
ExtensibleDataInterface.php:15
Magento\CatalogInventory\Api\Data\StockStatusInterface\setQty
setQty($qty)
Magento\CatalogInventory\Api\Data\StockStatusInterface\setStockId
setStockId($stockId)
Magento\CatalogInventory\Api\Data\StockStatusInterface\STATUS_OUT_OF_STOCK
const STATUS_OUT_OF_STOCK
Definition:
StockStatusInterface.php:24
Magento\CatalogInventory\Api\Data\StockStatusInterface\getQty
getQty()
Magento\CatalogInventory\Api\Data\StockStatusInterface\QTY
const QTY
Definition:
StockStatusInterface.php:34