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.
Test Failed
Push — master ( 4c05c3...e57ab4 )
by
unknown
07:19
created

CloseTicket   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A withTicketId() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Workorder\V20210610;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CloseTicket closeTicket(array $options = [])
9
 * @method CreateTicket createTicket(array $options = [])
10
 * @method GetMqConsumerTag getMqConsumerTag(array $options = [])
11
 * @method ListCategories listCategories(array $options = [])
12
 * @method ListProducts listProducts(array $options = [])
13
 * @method ListTicketNotes listTicketNotes(array $options = [])
14
 * @method ListTickets listTickets(array $options = [])
15
 * @method ReplyTicket replyTicket(array $options = [])
16
 */
17
class WorkorderApiResolver extends ApiResolver
18
{
19
}
20
21
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
22
{
23
    /** @var string */
24
    public $product = 'Workorder';
25
26
    /** @var string */
27
    public $version = '2021-06-10';
28
29
    /** @var string */
30
    public $method = 'POST';
31
}
32
33
/**
34
 * @method string getTicketId()
35
 */
36
class CloseTicket extends Rpc
37
{
38
39
    /**
40
     * @param string $value
41
     *
42
     * @return $this
43
     */
44
    public function withTicketId($value)
45
    {
46
        $this->data['TicketId'] = $value;
47
        $this->options['form_params']['TicketId'] = $value;
48
49
        return $this;
50
    }
51
}
52
53
/**
54
 * @method string getSeverity()
55
 * @method string getDescription()
56
 * @method string getCategoryId()
57
 */
58
class CreateTicket extends Rpc
59
{
60
61
    /**
62
     * @param string $value
63
     *
64
     * @return $this
65
     */
66
    public function withSeverity($value)
67
    {
68
        $this->data['Severity'] = $value;
69
        $this->options['form_params']['Severity'] = $value;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @param string $value
76
     *
77
     * @return $this
78
     */
79
    public function withDescription($value)
80
    {
81
        $this->data['Description'] = $value;
82
        $this->options['form_params']['Description'] = $value;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @param string $value
89
     *
90
     * @return $this
91
     */
92
    public function withCategoryId($value)
93
    {
94
        $this->data['CategoryId'] = $value;
95
        $this->options['form_params']['CategoryId'] = $value;
96
97
        return $this;
98
    }
99
}
100
101
class GetMqConsumerTag extends Rpc
102
{
103
}
104
105
/**
106
 * @method string getProductId()
107
 * @method string getName()
108
 */
109
class ListCategories extends Rpc
110
{
111
112
    /**
113
     * @param string $value
114
     *
115
     * @return $this
116
     */
117
    public function withProductId($value)
118
    {
119
        $this->data['ProductId'] = $value;
120
        $this->options['form_params']['ProductId'] = $value;
121
122
        return $this;
123
    }
124
125
    /**
126
     * @param string $value
127
     *
128
     * @return $this
129
     */
130
    public function withName($value)
131
    {
132
        $this->data['Name'] = $value;
133
        $this->options['form_params']['Name'] = $value;
134
135
        return $this;
136
    }
137
}
138
139
/**
140
 * @method string getName()
141
 * @method $this withName($value)
142
 */
143
class ListProducts extends Rpc
144
{
145
}
146
147
/**
148
 * @method string getTicketId()
149
 * @method $this withTicketId($value)
150
 */
151
class ListTicketNotes extends Rpc
152
{
153
}
154
155
/**
156
 * @method array getStatusList()
157
 * @method string getStartDate()
158
 * @method string getPageNumber()
159
 * @method $this withPageNumber($value)
160
 * @method string getEndDate()
161
 * @method string getPageSize()
162
 * @method $this withPageSize($value)
163
 * @method string getKeyword()
164
 * @method string getTicketId()
165
 */
166
class ListTickets extends Rpc
167
{
168
169
    /**
170
     * @param array $statusList
171
     *
172
     * @return $this
173
     */
174
	public function withStatusList(array $statusList)
175
	{
176
	    $this->data['StatusList'] = $statusList;
177
		foreach ($statusList as $i => $iValue) {
178
			$this->options['form_params']['StatusList.' . ($i + 1)] = $iValue;
179
		}
180
181
		return $this;
182
    }
183
184
    /**
185
     * @param string $value
186
     *
187
     * @return $this
188
     */
189
    public function withStartDate($value)
190
    {
191
        $this->data['StartDate'] = $value;
192
        $this->options['form_params']['StartDate'] = $value;
193
194
        return $this;
195
    }
196
197
    /**
198
     * @param string $value
199
     *
200
     * @return $this
201
     */
202
    public function withEndDate($value)
203
    {
204
        $this->data['EndDate'] = $value;
205
        $this->options['form_params']['EndDate'] = $value;
206
207
        return $this;
208
    }
209
210
    /**
211
     * @param string $value
212
     *
213
     * @return $this
214
     */
215
    public function withKeyword($value)
216
    {
217
        $this->data['Keyword'] = $value;
218
        $this->options['form_params']['Keyword'] = $value;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @param string $value
225
     *
226
     * @return $this
227
     */
228
    public function withTicketId($value)
229
    {
230
        $this->data['TicketId'] = $value;
231
        $this->options['form_params']['TicketId'] = $value;
232
233
        return $this;
234
    }
235
}
236
237
/**
238
 * @method string getSecContent()
239
 * @method string getContent()
240
 * @method string getTicketId()
241
 */
242
class ReplyTicket extends Rpc
243
{
244
245
    /**
246
     * @param string $value
247
     *
248
     * @return $this
249
     */
250
    public function withSecContent($value)
251
    {
252
        $this->data['SecContent'] = $value;
253
        $this->options['form_params']['SecContent'] = $value;
254
255
        return $this;
256
    }
257
258
    /**
259
     * @param string $value
260
     *
261
     * @return $this
262
     */
263
    public function withContent($value)
264
    {
265
        $this->data['Content'] = $value;
266
        $this->options['form_params']['Content'] = $value;
267
268
        return $this;
269
    }
270
271
    /**
272
     * @param string $value
273
     *
274
     * @return $this
275
     */
276
    public function withTicketId($value)
277
    {
278
        $this->data['TicketId'] = $value;
279
        $this->options['form_params']['TicketId'] = $value;
280
281
        return $this;
282
    }
283
}
284