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-payment
Model
Checks
SpecificationFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Payment\Model\Checks
;
7
16
class
SpecificationFactory
17
{
23
protected
$compositeFactory
;
24
28
protected
$mapping
;
29
36
public
function
__construct
(\
Magento
\
Payment
\Model\Checks\CompositeFactory
$compositeFactory
, array
$mapping
)
37
{
38
$this->compositeFactory =
$compositeFactory
;
39
$this->mapping =
$mapping
;
40
}
41
49
public
function
create
(
$data
)
50
{
51
$specifications = array_intersect_key($this->mapping, array_flip((array)
$data
));
52
return
$this->compositeFactory->create([
'list'
=> $specifications]);
53
}
54
}
Magento\Payment\Model\Checks\SpecificationFactory\$compositeFactory
$compositeFactory
Definition:
SpecificationFactory.php:23
Magento\Payment\Model\Checks\SpecificationFactory\create
create($data)
Definition:
SpecificationFactory.php:49
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Quote\Model\Quote\Payment
Definition:
Payment.php:37
Magento\Payment\Model\Checks
Definition:
CanUseCheckout.php:6
Magento\Payment\Model\Checks\SpecificationFactory\$mapping
$mapping
Definition:
SpecificationFactory.php:28
Magento\Payment\Model\Checks\SpecificationFactory
Definition:
SpecificationFactory.php:16
Magento
Magento\Payment\Model\Checks\SpecificationFactory\__construct
__construct(\Magento\Payment\Model\Checks\CompositeFactory $compositeFactory, array $mapping)
Definition:
SpecificationFactory.php:36