GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

OauthAccessPayload::getCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Slack API library.
5
 *
6
 * (c) Cas Leentfaar <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CL\Slack\Payload;
13
14
/**
15
 * @author Cas Leentfaar <[email protected]>
16
 *
17
 * @link Official documentation at https://api.slack.com/methods/oauth.access
18
 */
19
class OauthAccessPayload extends AbstractPayload
20
{
21
    /**
22
     * @var string
23
     */
24
    private $clientId;
25
26
    /**
27
     * @var string
28
     */
29
    private $clientSecret;
30
31
    /**
32
     * @var string
33
     */
34
    private $code;
35
36
    /**
37
     * @var string
38
     */
39
    private $redirectUri;
40
41
    /**
42
     * @param string $clientId
43
     */
44 1
    public function setClientId($clientId)
45
    {
46 1
        $this->clientId = $clientId;
47 1
    }
48
49
    /**
50
     * @return string
51
     */
52 1
    public function getClientId()
53
    {
54 1
        return $this->clientId;
55
    }
56
57
    /**
58
     * @param string $clientSecret
59
     */
60 1
    public function setClientSecret($clientSecret)
61
    {
62 1
        $this->clientSecret = $clientSecret;
63 1
    }
64
65
    /**
66
     * @return string
67
     */
68 1
    public function getClientSecret()
69
    {
70 1
        return $this->clientSecret;
71
    }
72
73
    /**
74
     * @param string $code
75
     */
76 1
    public function setCode($code)
77
    {
78 1
        $this->code = $code;
79 1
    }
80
81
    /**
82
     * @return string
83
     */
84 1
    public function getCode()
85
    {
86 1
        return $this->code;
87
    }
88
89
    /**
90
     * @param string $redirectUri
91
     */
92 1
    public function setRedirectUri($redirectUri)
93
    {
94 1
        $this->redirectUri = $redirectUri;
95 1
    }
96
97
    /**
98
     * @return string
99
     */
100 1
    public function getRedirectUri()
101
    {
102 1
        return $this->redirectUri;
103
    }
104
105
    /**
106
     * @inheritdoc
107
     */
108 1
    public function getMethod()
109
    {
110 1
        return 'oauth.access';
111
    }
112
}
113