ShakeAround   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getShakeInfo() 0 8 1
1
<?php
2
3
namespace EntWeChat\ShakeAround;
4
5
use EntWeChat\Core\AbstractAPI;
6
7
/**
8
 * Class ShakeAround.
9
 */
10
class ShakeAround extends AbstractAPI
11
{
12
    const API_GET_SHAKE_INFO = 'https://qyapi.weixin.qq.com/cgi-bin/shakearound/getshakeinfo';
13
14
    /**
15
     * Get shake info.
16
     *
17
     * @param string $ticket
18
     *
19
     * @return \EntWeChat\Support\Collection
20
     */
21
    public function getShakeInfo($ticket)
22
    {
23
        $params = [
24
            'ticket' => $ticket,
25
        ];
26
27
        return $this->parseJSON('json', [self::API_GET_SHAKE_INFO, $params]);
28
    }
29
}
30