Passed
Push — master ( 2729ea...b493c9 )
by Songda
02:00
created

QueryCallbackPlugin::getMethod()   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
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yansongda\Pay\Plugin\Wechat\Risk\Complaints;
6
7
use Yansongda\Pay\Plugin\Wechat\GeneralPlugin;
8
use Yansongda\Pay\Rocket;
9
10
/**
11
 * @see https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_3.shtml
12
 */
13
class QueryCallbackPlugin extends GeneralPlugin
14
{
15
    protected function getMethod(): string
16
    {
17
        return 'GET';
18
    }
19
20
    protected function doSomething(Rocket $rocket): void
21
    {
22
        $rocket->setPayload(null);
23
    }
24
25
    protected function getUri(Rocket $rocket): string
26
    {
27
        return 'v3/merchant-service/complaint-notifications';
28
    }
29
}
30