GetCurrentUserRequest::parseResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 * This file is part of the slince/smartqq package.
4
 *
5
 * (c) Slince <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Slince\SmartQQ\Request;
12
13
use GuzzleHttp\Psr7\Response;
14
use Slince\SmartQQ\Entity\Profile;
15
16
class GetCurrentUserRequest extends Request
17
{
18
    protected $uri = 'http://s.web2.qq.com/api/get_self_info2?t=0.1';
19
20
    protected $referer = 'http://s.web2.qq.com/proxy.html?v=20130916001&callback=1&id=1';
21
22
    /**
23
     * 解析响应数据.
24
     *
25
     * @param Response $response
26
     *
27
     * @return Profile
28
     */
29
    public static function parseResponse(Response $response)
30
    {
31
        return GetFriendDetailRequest::parseResponse($response);
32
    }
33
}
34