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
Composite.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Payment\Model\Checks
;
7
8
use
Magento\Payment\Model\MethodInterface
;
9
use
Magento\Quote\Model\Quote
;
10
18
class
Composite
implements
SpecificationInterface
19
{
23
protected
$list
= [];
24
28
public
function
__construct
(array
$list
)
29
{
30
$this->list =
$list
;
31
}
32
40
public
function
isApplicable
(
MethodInterface
$paymentMethod,
Quote
$quote
)
41
{
42
foreach
($this->list as $specification) {
43
if
(!$specification->isApplicable($paymentMethod,
$quote
)) {
44
return
false
;
45
}
46
}
47
return
true
;
48
}
49
}
Magento\Payment\Model\Checks\Composite\__construct
__construct(array $list)
Definition:
Composite.php:28
$quote
$quote
Definition:
paypal_quote.php:17
Magento\Payment\Model\Checks\Composite\isApplicable
isApplicable(MethodInterface $paymentMethod, Quote $quote)
Definition:
Composite.php:40
Magento\Payment\Model\Checks\SpecificationInterface
Definition:
SpecificationInterface.php:17
Magento\Payment\Model\Checks
Definition:
CanUseCheckout.php:6
Magento\Payment\Model\MethodInterface
Definition:
MethodInterface.php:16
Magento\Quote\Model\Quote
Definition:
Quote.php:107
Magento\Quote\Model\Quote
Definition:
AddressTest.php:6
Magento\Payment\Model\Checks\Composite\$list
$list
Definition:
Composite.php:23
Magento\Payment\Model\Checks\Composite
Definition:
Composite.php:18