Passed
Pull Request — master (#1002)
by
unknown
02:10
created

RefundPlugin   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getService() 0 3 1
A doSomethingBefore() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yansongda\Pay\Plugin\Epay\Pay\Scan;
6
7
use Yansongda\Artful\Rocket;
8
use Yansongda\Pay\Plugin\Epay\GeneralPlugin;
9
10
class RefundPlugin extends GeneralPlugin
11
{
12
    protected function getService(): string
13
    {
14
        return 'payRefund';
15
    }
16
17
    protected function doSomethingBefore(Rocket $rocket): void
18
    {
19
        $rocket->mergePayload([
20
            'deviceNo' => '1234567890',
21
        ]);
22
    }
23
}
24