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-api
Api
Data
StockInterface.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryApi\Api\Data
;
9
17
interface
StockInterface
extends
\Magento\Framework\Api\ExtensibleDataInterface
18
{
22
const
STOCK_ID
=
'stock_id'
;
23
const
NAME
=
'name'
;
31
public
function
getStockId
(): ?int;
32
39
public
function
setStockId
(?
int
$stockId): void;
40
46
public
function
getName
(): ?string;
47
54
public
function
setName
(?
string
$name
): void;
55
61
public
function
getExtensionAttributes
(): ?\
Magento
\InventoryApi\Api\Data\
StockExtensionInterface
;
62
69
public
function
setExtensionAttributes
(
70
\
Magento
\InventoryApi\Api\Data\
StockExtensionInterface
$extensionAttributes
71
): void;
72
}
Magento\InventoryApi\Api\Data\StockInterface\STOCK_ID
const STOCK_ID
Definition:
StockInterface.php:22
Magento\InventoryApi\Api\Data\StockInterface
Definition:
StockInterface.php:17
Magento\InventoryApi\Api\Data\StockInterface\NAME
const NAME
Definition:
StockInterface.php:23
Magento\InventoryApi\Api\Data\StockInterface\getStockId
getStockId()
Magento\InventoryApi\Api\Data\StockInterface\getName
getName()
Magento\InventoryApi\Api\Data\StockInterface\getExtensionAttributes
getExtensionAttributes()
Magento\InventoryApi\Api\Data
Definition:
SourceCarrierLinkInterface.php:8
Magento\InventoryApi\Api\Data\StockInterface\setExtensionAttributes
setExtensionAttributes(\Magento\InventoryApi\Api\Data\StockExtensionInterface $extensionAttributes)
$extensionAttributes
$extensionAttributes
Definition:
payment.php:22
Magento
Magento\InventoryApi\Api\Data\StockInterface\setName
setName(?string $name)
Magento\Framework\Api\ExtensibleDataInterface
Definition:
ExtensibleDataInterface.php:15
Magento\InventoryApi\Api\Data\StockInterface\setStockId
setStockId(?int $stockId)
Magento\InventoryApi\Api\Data\StockExtensionInterface
Definition:
StockExtensionInterface.php:14
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14