Completed
Push — master ( 017947...8f5b55 )
by frey
13s
created

API   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCallbackIp() 0 4 1
1
<?php
2
3
namespace EntWeChat\Fundamental;
4
5
use EntWeChat\Core\AbstractAPI;
6
7
class API extends AbstractAPI
8
{
9
    const API_CALLBACK_IP = 'https://qyapi.weixin.qq.com/cgi-bin/getcallbackip';
10
11
    /**
12
     * Get wechat callback ip.
13
     *
14
     * @return \EntWeChat\Support\Collection
15
     */
16
    public function getCallbackIp()
17
    {
18
        return $this->parseJSON('get', [self::API_CALLBACK_IP]);
19
    }
20
}
21