UpdatePaymentModelsFromResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
<?php
2
3
namespace ByTIC\Payments\Actions\GatewayNotifications;
4
5
/**
6
 * Class UpdatePaymentModelsFromResponse
7
 * @package ByTIC\Payments\Actions
8
 * @internal
9
 */
10
class UpdatePaymentModelsFromResponse
11
{
12
    /**
13
     * @param $response
14
     * @param $model
15
     * @param string $type
16
     */
17
    public static function handle($response, $model, $type)
18
    {
19
        $notification = new NotificationData($type, $response, $model);
20
21
        CreateSessionFromResponse::handle($notification);
22
        CreateOrUpdateTokenFromResponse::handle($notification);
23
        CreateOrUpdateTransactionFromResponse::handle($notification);
24
        UpdateSubscriptionFromResponse::handle($notification);
25
    }
26
}
27