Bogus   A
last analyzed

Complexity

Total Complexity 13

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 13
eloc 6
c 1
b 0
f 0
dl 0
loc 57
ccs 0
cts 26
cp 0
rs 10

13 Methods

Rating   Name   Duplication   Size   Complexity  
A cancel() 0 2 1
A success() 0 3 1
A transactionId() 0 3 1
A capture() 0 2 1
A authorize() 0 2 1
A query() 0 2 1
A message() 0 3 1
A initiate() 0 2 1
A errorCode() 0 3 1
A responseCode() 0 3 1
A refund() 0 2 1
A purchase() 0 2 1
A retrieve() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Larium\Pay\Gateway;
6
7
use Larium\Pay\Transaction\Authorize;
8
use Larium\Pay\Transaction\Cancel;
9
use Larium\Pay\Transaction\Capture;
10
use Larium\Pay\Transaction\Initial;
11
use Larium\Pay\Transaction\Purchase;
12
use Larium\Pay\Transaction\Query;
13
use Larium\Pay\Transaction\Refund;
14
use Larium\Pay\Transaction\Retrieve;
15
16
class Bogus extends Gateway
17
{
18
    protected function purchase(Purchase $transaction): mixed
19
    {
20
    }
21
22
    protected function authorize(Authorize $transaction): mixed
23
    {
24
    }
25
26
    protected function capture(Capture $transaction): mixed
27
    {
28
    }
29
30
    protected function refund(Refund $transaction): mixed
31
    {
32
    }
33
34
    protected function cancel(Cancel $transaction): mixed
35
    {
36
    }
37
38
    protected function retrieve(Retrieve $transaction): mixed
39
    {
40
    }
41
42
    protected function initiate(Initial $transaction): mixed
43
    {
44
    }
45
46
    protected function query(Query $transaction): mixed
47
    {
48
    }
49
50
    protected function success(array $response): bool
51
    {
52
        return true;
53
    }
54
55
    protected function message(array $response): string
56
    {
57
        return '';
58
    }
59
60
    protected function transactionId(array $response): ?string
61
    {
62
        return null;
63
    }
64
65
    protected function errorCode(array $response): ?string
66
    {
67
        return null;
68
    }
69
70
    protected function responseCode(array $response): ?string
71
    {
72
        return null;
73
    }
74
}
75