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.

ApiErrorResponse   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 166
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 166
rs 10
c 0
b 0
f 0

10 Methods

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