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

UpdateCallbackPlugin   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 3
c 1
b 0
f 0
dl 0
loc 14
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getMethod() 0 3 1
A doSomething() 0 2 1
A getUri() 0 3 1
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_4.shtml
12
 */
13
class UpdateCallbackPlugin extends GeneralPlugin
14
{
15
    protected function getMethod(): string
16
    {
17
        return 'PUT';
18
    }
19
20
    protected function doSomething(Rocket $rocket): void
21
    {
22
    }
23
24
    protected function getUri(Rocket $rocket): string
25
    {
26
        return 'v3/merchant-service/complaint-notifications';
27
    }
28
}
29