FlowQuery::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Vicens\Alidayu\Request;
4
5
/**
6
 * 流量直充查询
7
 * @link https://api.alidayu.com/docs/api.htm?apiId=26305
8
 * @method $this|string outId(string | null $outId = null)
9
 */
10
class FlowQuery extends AbstractRequest
11
{
12
13
    /**
14
     * FlowQuery constructor.
15
     * @param string|null $outId 唯一流水号
16
     */
17
    public function __construct($outId = null)
18
    {
19
        $this->setParams([
20
            'out_id' => $outId
21
        ]);
22
    }
23
24
    /**
25
     * 返回接口名
26
     * @return string
27
     */
28
    public function getMethod()
29
    {
30
        return 'alibaba.aliqin.fc.flow.query';
31
    }
32
}
33