FlowGrade::getMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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