VerifyQrCodeRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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
class VerifyQrCodeRequest extends Request
14
{
15
    /**
16
     * 二维码状态,未失效.
17
     *
18
     * @var int
19
     */
20
    const STATUS_UNEXPIRED = 1;
21
22
    /**
23
     * 二维码状态,已失效.
24
     *
25
     * @var int
26
     */
27
    const STATUS_EXPIRED = 2;
28
29
    /**
30
     * 二维码状态,认证中.
31
     *
32
     * @var int
33
     */
34
    const STATUS_ACCREDITATION = 3;
35
36
    /**
37
     * 二维码状态,认证成功
38
     *
39
     * @var int
40
     */
41
    const STATUS_CERTIFICATION = 4;
42
43
    protected $uri = 'https://ssl.ptlogin2.qq.com/ptqrlogin?ptqrtoken={ptqrtoken}&webqq_type=10&remember_uin=1&login2qq=1&aid=501004106&u1=http%3A%2F%2Fw.qq.com%2Fproxy.html%3Flogin2qq%3D1%26webqq_type%3D10&ptredirect=0&ptlang=2052&daid=164&from_ui=1&pttype=1&dumy=&fp=loginerroralert&action=0-0-4303&mibao_css=m_webqq&t=undefined&g=1&js_type=0&js_ver=10203&login_sig=&pt_randsalt=0';
44
45
    protected $referer = 'https://ui.ptlogin2.qq.com/cgi-bin/login?daid=164&target=self&style=16&mibao_css=m_webqq&appid=501004106&enable_qlogin=0&no_verifyimg=1 &s_url=http%3A%2F%2Fw.qq.com%2Fproxy.html&f_url=loginerroralert &strong_login=1&login_state=10&t=20131024001';
46
47
    public function __construct($ptQrToken)
48
    {
49
        $this->setToken('ptqrtoken', $ptQrToken);
50
    }
51
}
52