Topup::result()   A
last analyzed

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
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Abbotton\DouDian\Api;
4
5
use Illuminate\Http\Client\RequestException;
6
use Psr\SimpleCache\InvalidArgumentException;
7
8
class Topup extends BaseRequest
9
{
10
    /**
11
     * 商家充值结果回调.
12
     *
13
     * @param  array  $params
14
     * @return array
15
     * @throws InvalidArgumentException
16
     * @throws RequestException
17
     */
18
    public function result(array $params): array
19
    {
20
        return $this->httpPost('topup/result', $params);
21
    }
22
23
    /**
24
     * 获取叶子类目可选的账号模板id.
25
     *
26
     * @param  array  $params
27
     * @return array
28
     * @throws InvalidArgumentException
29
     * @throws RequestException
30
     */
31
    public function accountTemplateList(array $params): array
32
    {
33
        return $this->httpPost('topup/accountTemplateList', $params);
34
    }
35
}
36