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.
Passed
Push — master ( 2d0137...54f172 )
by Yong
12:14 queued 08:03
created

AlibabaCloudException::getErrorCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

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
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace AlibabaCloud\Client\Exception;
4
5
use Exception;
6
use RuntimeException;
7
8
/**
9
 * Class AlibabaCloudException
10
 *
11
 * @package   AlibabaCloud\Client\Exception
12
 */
13
abstract class AlibabaCloudException extends Exception
14
{
15
16
    /**
17
     * @var string
18
     */
19
    protected $errorCode;
20
21
    /**
22
     * @var string
23
     */
24
    protected $errorMessage;
25
26
    /**
27
     * @return string
28
     */
29 10
    public function getErrorCode()
30
    {
31 10
        return $this->errorCode;
32
    }
33
34
    /**
35
     * @codeCoverageIgnore
36
     * @deprecated
37
     */
38
    public function setErrorCode()
39
    {
40
        throw new RuntimeException('deprecated since 2.0.');
41
    }
42
43
    /**
44
     * @return string
45
     */
46 31
    public function getErrorMessage()
47
    {
48 31
        return $this->errorMessage;
49
    }
50
51
    /**
52
     * @codeCoverageIgnore
53
     *
54
     * @param $errorMessage
55
     *
56
     * @deprecated
57
     */
58
    public function setErrorMessage($errorMessage)
59
    {
60
        $this->errorMessage = $errorMessage;
61
    }
62
63
    /**
64
     * @codeCoverageIgnore
65
     * @deprecated
66
     */
67
    public function setErrorType()
68
    {
69
    }
70
}
71