Passed
Push — v6 ( fe03e1...0ec70f )
by 光春
04:11
created

AccessTokenRequest   A

Complexity

Total Complexity 11

Size/Duplication

Total Lines 82
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 82
rs 10
wmc 11

11 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A getClientSecret() 0 3 1
A getCode() 0 3 1
A getRedirectUri() 0 3 1
A setClientSecret() 0 3 1
A getClientId() 0 3 1
A setRedirectUri() 0 3 1
A setClientId() 0 3 1
A setGrantType() 0 3 1
A setCode() 0 3 1
A getGrantType() 0 3 1
1
<?php
2
namespace Com\Pdd\Pop\Sdk\Token;
3
4
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
5
6
/**
7
 * AccessToken request类
8
 */
9
10
class AccessTokenRequest extends PopBaseJsonEntity
11
{
12
13
    /**
14
     * @JsonProperty(String, "client_id")
15
     */
16
    private $clientId;
17
18
    /**
19
     * @JsonProperty(String, "client_secret")
20
     */
21
    private $clientSecret;
22
23
    /**
24
     * @JsonProperty(String, "grant_type")
25
     */
26
    private $grantType;
27
28
    /**
29
     * @JsonProperty(String, "code")
30
     */
31
    private $code;
32
33
    /**
34
     * @JsonProperty(String, "redirect_uri")
35
     */
36
    private $redirectUri = "http://www.baidu.com";
37
38
39
    public function __construct()
40
    {
41
42
    }
43
44
    public function getRedirectUri()
45
    {
46
        return $this->redirectUri;
47
    }
48
49
    public function setRedirectUri($redirectUri)
50
    {
51
        $this->redirectUri = $redirectUri;
52
    }
53
54
    public function getClientId()
55
    {
56
        return $this->clientId;
57
    }
58
59
    public function setClientId($clientId)
60
    {
61
        $this->clientId = $clientId;
62
    }
63
64
    public function getClientSecret()
65
    {
66
        return $this->clientSecret;
67
    }
68
69
    public function setClientSecret($clientSecret)
70
    {
71
        $this->clientSecret = $clientSecret;
72
    }
73
74
    public function getGrantType()
75
    {
76
        return $this->grantType;
77
    }
78
79
    public function setGrantType($grantType)
80
    {
81
        $this->grantType = $grantType;
82
    }
83
84
    public function getCode()
85
    {
86
        return $this->code;
87
    }
88
89
    public function setCode($code)
90
    {
91
        $this->code = $code;
92
    }
93
}
94