Bogus::purchase()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
c 1
b 0
f 0
dl 0
loc 2
ccs 0
cts 1
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
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