Passed
Pull Request — master (#662)
by Songda
02:09 queued 23s
created

PayPlugin::getUri()   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 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yansongda\Pay\Plugin\Unipay\OnlineGateway;
6
7
use Yansongda\Pay\Parser\ResponseParser;
8
use Yansongda\Pay\Plugin\Unipay\GeneralPlugin;
9
use Yansongda\Pay\Rocket;
10
11
class PayPlugin extends GeneralPlugin
12
{
13
    protected function getUri(Rocket $rocket): string
14
    {
15
        return 'gateway/api/frontTransReq.do';
16
    }
17
18
    protected function doSomething(Rocket $rocket): void
19
    {
20
        $rocket->setDirection(ResponseParser::class);
21
    }
22
}
23