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-source-deduction-api
Model
ItemToDeduct.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventorySourceDeductionApi\Model
;
9
13
class
ItemToDeduct
implements
ItemToDeductInterface
14
{
18
private
$sku;
19
23
private
$qty;
24
29
public
function
__construct
(
string
$sku,
float
$qty)
30
{
31
$this->sku = $sku;
32
$this->qty = $qty;
33
}
34
38
public
function
getSku
(): string
39
{
40
return
$this->sku;
41
}
42
46
public
function
getQty
(): float
47
{
48
return
$this->qty;
49
}
50
}
Magento\InventorySourceDeductionApi\Model
Definition:
GetSourceItemBySourceCodeAndSku.php:8
Magento\InventorySourceDeductionApi\Model\ItemToDeduct\__construct
__construct(string $sku, float $qty)
Definition:
ItemToDeduct.php:29
Magento\InventorySourceDeductionApi\Model\ItemToDeduct\getQty
getQty()
Definition:
ItemToDeduct.php:46
Magento\InventorySourceDeductionApi\Model\ItemToDeductInterface
Definition:
ItemToDeductInterface.php:15
Magento\InventorySourceDeductionApi\Model\ItemToDeduct
Definition:
ItemToDeduct.php:13
Magento\InventorySourceDeductionApi\Model\ItemToDeduct\getSku
getSku()
Definition:
ItemToDeduct.php:38