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

AccessTokenRequest::getClientSecret()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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