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.
Completed
Push — master ( 38acb8...8ff9c1 )
by Dragos
13:44
created

ApiErrorResponse::setCause()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Speicher210\KontaktIO\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Class representing an API error response.
9
 */
10
class ApiErrorResponse
11
{
12
    /**
13
     * API error id.
14
     *
15
     * @var string
16
     *
17
     * @JMS\Type("string")
18
     * @JMS\SerializedName("id")
19
     */
20
    protected $id;
21
22
    /**
23
     * Response status.
24
     *
25
     * @var integer
26
     *
27
     * @JMS\Type("integer")
28
     * @JMS\SerializedName("status")
29
     */
30
    protected $status;
31
32
    /**
33
     * API error cause.
34
     *
35
     * @var string
36
     *
37
     * @JMS\Type("string")
38
     * @JMS\SerializedName("cause")
39
     */
40
    protected $cause;
41
42
    /**
43
     * API error message.
44
     *
45
     * @var string
46
     *
47
     * @JMS\Type("string")
48
     * @JMS\SerializedName("message")
49
     */
50
    protected $message;
51
52
    /**
53
     * API error details.
54
     *
55
     * @var array|null
56
     *
57
     * @JMS\Type("array")
58
     * @JMS\SerializedName("details")
59
     */
60
    protected $details;
61
62
    /**
63
     * Get the ID.
64
     *
65
     * @return string
66
     */
67
    public function getId()
68
    {
69
        return $this->id;
70
    }
71
72
    /**
73
     * Set the error ID.
74
     *
75
     * @param string $id The error ID.
76
     * @return ApiErrorResponse
77
     */
78
    public function setId($id)
79
    {
80
        $this->id = $id;
81
82
        return $this;
83
    }
84
85
    /**
86
     * Get the status.
87
     *
88
     * @return integer
89
     */
90
    public function getStatus()
91
    {
92
        return $this->status;
93
    }
94
95
    /**
96
     * Set the status.
97
     *
98
     * @param integer $status The status.
99
     * @return ApiErrorResponse
100
     */
101
    public function setStatus($status)
102
    {
103
        $this->status = $status;
104
105
        return $this;
106
    }
107
108
    /**
109
     * Get the cause.
110
     *
111
     * @return string
112
     */
113
    public function getCause()
114
    {
115
        return $this->cause;
116
    }
117
118
    /**
119
     * Set the cause.
120
     * @param string $cause
121
     * @return ApiErrorResponse
122
     */
123
    public function setCause($cause)
124
    {
125
        $this->cause = $cause;
126
127
        return $this;
128
    }
129
130
    /**
131
     * Get the error message.
132
     *
133
     * @return string
134
     */
135
    public function getMessage()
136
    {
137
        return $this->message;
138
    }
139
140
    /**
141
     * Set the message.
142
     *
143
     * @param string $message The message.
144
     * @return ApiErrorResponse
145
     */
146
    public function setMessage($message)
147
    {
148
        $this->message = $message;
149
150
        return $this;
151
    }
152
153
    /**
154
     * Get the details.
155
     *
156
     * @return array|null
157
     */
158
    public function getDetails()
159
    {
160
        return $this->details;
161
    }
162
163
    /**
164
     * Set the details.
165
     *
166
     * @param array $details The details.
167
     * @return ApiErrorResponse
168
     */
169
    public function setDetails(array $details = null)
170
    {
171
        $this->details = $details;
172
173
        return $this;
174
    }
175
}
176