Completed
Push — master ( 535ca7...0a8b20 )
by mingyoung
01:31
created

Client::unbind()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: keal
5
 * Date: 2017/11/6
6
 * Time: 下午2:11
7
 */
8
9
namespace EasyWeChat\OpenPlatform\Authorizer\MiniProgram\Tester;
10
11
12
use EasyWeChat\Kernel\BaseClient;
13
14
/**
15
 * Class Client
16
 *
17
 * @author caikeal <[email protected]>
18
 */
19
class Client extends BaseClient
20
{
21
    /**
22
     * 绑定小程序体验者
23
     *
24
     * @param string $wechatId
25
     *
26
     * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
27
     */
28
    public function bind(string $wechatId)
29
    {
30
        return $this->httpPostJson('wxa/bind_tester', [
31
            'wechatid' => $wechatId
32
        ]);
33
    }
34
35
    /**
36
     * 解绑小程序体验者
37
     *
38
     * @param string $wechatId
39
     *
40
     * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
41
     */
42
    public function unbind(string $wechatId)
43
    {
44
        return $this->httpPostJson('wxa/unbind_tester', [
45
            'wechatid' => $wechatId
46
        ]);
47
    }
48
}