Completed
Pull Request — master (#288)
by Carlos
02:48
created

Reply::current()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the overtrue/wechat.
5
 *
6
 * (c) overtrue <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
/**
13
 * Reply.php.
14
 *
15
 * @author    overtrue <[email protected]>
16
 * @copyright 2015 overtrue <[email protected]>
17
 *
18
 * @link      https://github.com/overtrue
19
 * @link      http://overtrue.me
20
 */
21
namespace EasyWeChat\Reply;
22
23
use EasyWeChat\Core\AbstractAPI;
24
25
/**
26
 * Class Reply.
27
 */
28
class Reply extends AbstractAPI
29
{
30
    const API_GET_CURRENT_SETTING = 'https://api.weixin.qq.com/cgi-bin/get_current_autoreply_info';
31
32
    /**
33
     * Get current auto reply settings.
34
     *
35
     * @return \EasyWeChat\Support\Collection
36
     */
37 1
    public function current()
38
    {
39 1
        return $this->parseJSON('get', [self::API_GET_CURRENT_SETTING]);
40
    }
41
}
42