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-paypal
Model
Payflow
Service
Response
Handler
HandlerComposite.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Paypal\Model\Payflow\Service\Response\Handler
;
7
8
use
Magento\Framework\DataObject
;
9
use
Magento\Payment\Model\InfoInterface
;
10
11
class
HandlerComposite
implements
HandlerInterface
12
{
16
private
$handlers = [];
17
21
public
function
__construct
(array $handlers = [])
22
{
23
array_walk(
24
$handlers,
25
function
(
$handler
,
$code
) {
26
if
(!
$handler
instanceof
HandlerInterface
) {
27
$message
=
'Type mismatch. Expected type: %s. Actual: %s, Code: %s'
;
28
29
throw
new \LogicException(
30
sprintf(
$message
,
'HandlerInterface'
, gettype(
$handler
),
$code
)
31
);
32
}
33
}
34
);
35
36
$this->handlers = $handlers;
37
}
38
42
public
function
handle
(
InfoInterface
$payment
,
DataObject
$response
)
43
{
44
foreach
($this->handlers as
$handle
) {
45
$handle
->handle(
$payment
,
$response
);
46
}
47
}
48
}
Magento\Paypal\Model\Payflow\Service\Response\Handler\HandlerComposite\handle
handle(InfoInterface $payment, DataObject $response)
Definition:
HandlerComposite.php:42
Magento\Paypal\Model\Payflow\Service\Response\Handler
Definition:
CreditCardValidationHandler.php:6
$response
$response
Definition:
404.php:11
Magento\Paypal\Model\Payflow\Service\Response\Handler\HandlerComposite\__construct
__construct(array $handlers=[])
Definition:
HandlerComposite.php:21
Magento\Paypal\Model\Payflow\Service\Response\Handler\HandlerComposite
Definition:
HandlerComposite.php:11
$message
$message
Definition:
notifications.php:7
Magento\Framework\DataObject
Definition:
DataObject.php:15
$payment
$payment
Definition:
order.php:17
Magento\Paypal\Model\Payflow\Service\Response\Handler\HandlerInterface
Definition:
HandlerInterface.php:15
$handle
$handle
Definition:
payment_enc_cc.php:26
Magento\Payment\Model\InfoInterface
Definition:
InfoInterface.php:14
$code
$code
Definition:
info.phtml:12
$handler
catch(\Exception $e) $handler
Definition:
index.php:30
Magento\Framework\DataObject
Definition:
Cache.php:6