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

RefundPlugin::getService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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