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-multishipping
Model
Checkout
Type
Multishipping
PlaceOrderPool.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Multishipping\Model\Checkout\Type\Multishipping
;
9
10
use
Magento\Framework\ObjectManager\TMap
;
11
use
Magento\Framework\ObjectManager\TMapFactory
;
12
18
class
PlaceOrderPool
19
{
23
private
$services;
24
29
public
function
__construct
(
30
TMapFactory
$tmapFactory,
31
array $services = []
32
) {
33
$this->services = $tmapFactory->
createSharedObjectsMap
(
34
[
35
'array'
=> $services,
36
'type'
=> PlaceOrderInterface::class
37
]
38
);
39
}
40
47
public
function
get
(
string
$paymentProviderCode)
48
{
49
if
(!isset($this->services[$paymentProviderCode])) {
50
return
null
;
51
}
52
53
return
$this->services[$paymentProviderCode];
54
}
55
}
Magento\Multishipping\Model\Checkout\Type\Multishipping
Definition:
PlaceOrderDefault.php:8
Magento\Framework\ObjectManager\TMapFactory
Definition:
TMapFactory.php:13
Magento\Framework\ObjectManager\TMap
Definition:
TMap.php:14
Magento\Framework\ObjectManager\TMapFactory\createSharedObjectsMap
createSharedObjectsMap(array $args)
Definition:
TMapFactory.php:42
Magento\Multishipping\Model\Checkout\Type\Multishipping\PlaceOrderPool\__construct
__construct(TMapFactory $tmapFactory, array $services=[])
Definition:
PlaceOrderPool.php:29
Magento\Multishipping\Model\Checkout\Type\Multishipping\PlaceOrderPool
Definition:
PlaceOrderPool.php:18