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)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-inventory-import-export
Model
Import
Command
Append.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\InventoryImportExport\Model\Import\Command
;
9
10
use
Magento\InventoryApi\Api\SourceItemsSaveInterface
;
11
use
Magento\InventoryImportExport\Model\Import\SourceItemConvert
;
12
16
class
Append
implements
CommandInterface
17
{
21
private
$sourceItemConvert;
22
26
private
$sourceItemsSave;
27
32
public
function
__construct
(
33
SourceItemConvert
$sourceItemConvert,
34
SourceItemsSaveInterface
$sourceItemsSave
35
) {
36
$this->sourceItemConvert = $sourceItemConvert;
37
$this->sourceItemsSave =
$sourceItemsSave
;
38
}
39
43
public
function
execute
(array $bunch)
44
{
45
$sourceItems
= $this->sourceItemConvert->convert($bunch);
46
$this->sourceItemsSave->execute(
$sourceItems
);
47
}
48
}
Magento\InventoryApi\Api\SourceItemsSaveInterface
Definition:
SourceItemsSaveInterface.php:18
Magento\InventoryImportExport\Model\Import\Command\Append
Definition:
Append.php:16
Magento\InventoryImportExport\Model\Import\SourceItemConvert
Definition:
SourceItemConvert.php:13
$sourceItems
$sourceItems
Definition:
source_items.php:76
Magento\InventoryImportExport\Model\Import\Command\Append\execute
execute(array $bunch)
Definition:
Append.php:43
$sourceItemsSave
$sourceItemsSave
Definition:
source_items.php:19
Magento\InventoryImportExport\Model\Import\Command\Append\__construct
__construct(SourceItemConvert $sourceItemConvert, SourceItemsSaveInterface $sourceItemsSave)
Definition:
Append.php:32
Magento\InventoryImportExport\Model\Import\Command
Definition:
Append.php:8
Magento\InventoryImportExport\Model\Import\Command\CommandInterface
Definition:
CommandInterface.php:15