LaravelMobilpayCustomActionsAndNotifications   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 24
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A beforeCreatingTransaction() 0 4 1
A afterCreatingTransaction() 0 3 1
A beforeUpdatingTransaction() 0 3 1
A afterUpdatingTransaction() 0 3 1
A onTransactionError() 0 3 1
1
<?php
2
3
namespace App\LaravelMobilpay;
4
5
use Netopia\Payment\Request\Card;
6
use Netopia\Payment\Request\PaymentAbstract;
7
use Stl30\LaravelMobilpay\CustomActionsAndNotifications;
8
use Stl30\LaravelMobilpay\MobilpayTransaction;
9
10
class LaravelMobilpayCustomActionsAndNotifications extends CustomActionsAndNotifications
11
{
12
    public function beforeCreatingTransaction(Card $mobilpayRequestObject, $customDataParameter = '')
13
    {
14
15
    }
16
17
    public function afterCreatingTransaction(MobilpayTransaction $transaction, $addTransactionIsSuccessful)
18
    {
19
    }
20
21
    public function beforeUpdatingTransaction(PaymentAbstract $mobilpayReturnObject, $orderStatus)
22
    {
23
    }
24
25
    public function afterUpdatingTransaction(MobilpayTransaction $transaction, $updatedIsSuccessful)
26
    {
27
    }
28
29
    public function onTransactionError($errorCode, $errorType, $errorMessage, $mobilpayReturnObject)
30
    {
31
    }
32
33
}
34