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
framework
Pricing
Adjustment
Factory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Pricing\Adjustment
;
8
12
class
Factory
13
{
19
protected
$objectManager
;
20
26
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
27
{
28
$this->objectManager =
$objectManager
;
29
}
30
39
public
function
create
(
$className
, array
$arguments
= [])
40
{
41
$adjustment = $this->objectManager->create(
$className
,
$arguments
);
42
if
(!$adjustment instanceof
AdjustmentInterface
) {
43
throw
new \InvalidArgumentException(
44
$className
.
' doesn\'t implement \Magento\Framework\Pricing\Adjustment\AdjustmentInterface'
45
);
46
}
47
return
$adjustment;
48
}
49
}
Magento\Framework\Pricing\Adjustment\Factory
Definition:
Factory.php:12
Magento\Framework\Pricing\Adjustment
Definition:
AdjustmentInterface.php:7
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Pricing\Adjustment\Factory\create
create($className, array $arguments=[])
Definition:
Factory.php:39
Magento\Framework\Pricing\Adjustment\Factory\$objectManager
$objectManager
Definition:
Factory.php:19
Magento\Framework\Pricing\Adjustment\AdjustmentInterface
Definition:
AdjustmentInterface.php:17
Magento
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Framework\Pricing\Adjustment\Factory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
Factory.php:26
$className
if($currentSelectedMethod==$_code) $className
Definition:
form.phtml:31