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 ( bf8431...70eca6 )
by
unknown
09:45
created

SplitVideoParts   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 16
c 1
b 0
f 0
dl 0
loc 66
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A withAsync() 0 6 1
A withVideoUrl() 0 6 1
A withTemplate() 0 6 1
A withMaxTime() 0 6 1
A withMinTime() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Videorecog\V20200320;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method DetectVideoShot detectVideoShot(array $options = [])
9
 * @method EvaluateVideoQuality evaluateVideoQuality(array $options = [])
10
 * @method GenerateVideoCover generateVideoCover(array $options = [])
11
 * @method GetAsyncJobResult getAsyncJobResult(array $options = [])
12
 * @method RecognizeVideoCastCrewList recognizeVideoCastCrewList(array $options = [])
13
 * @method SplitVideoParts splitVideoParts(array $options = [])
14
 * @method UnderstandVideoContent understandVideoContent(array $options = [])
15
 */
16
class VideorecogApiResolver extends ApiResolver
17
{
18
}
19
20
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
21
{
22
    /** @var string */
23
    public $product = 'videorecog';
24
25
    /** @var string */
26
    public $version = '2020-03-20';
27
28
    /** @var string */
29
    public $method = 'POST';
30
31
    /** @var string */
32
    public $serviceCode = 'videorecog';
33
}
34
35
/**
36
 * @method string getAsync()
37
 * @method string getVideoUrl()
38
 */
39
class DetectVideoShot extends Rpc
40
{
41
42
    /**
43
     * @param string $value
44
     *
45
     * @return $this
46
     */
47
    public function withAsync($value)
48
    {
49
        $this->data['Async'] = $value;
50
        $this->options['form_params']['Async'] = $value;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @param string $value
57
     *
58
     * @return $this
59
     */
60
    public function withVideoUrl($value)
61
    {
62
        $this->data['VideoUrl'] = $value;
63
        $this->options['form_params']['VideoUrl'] = $value;
64
65
        return $this;
66
    }
67
}
68
69
/**
70
 * @method string getMode()
71
 * @method string getAsync()
72
 * @method string getVideoUrl()
73
 */
74
class EvaluateVideoQuality extends Rpc
75
{
76
77
    /**
78
     * @param string $value
79
     *
80
     * @return $this
81
     */
82
    public function withMode($value)
83
    {
84
        $this->data['Mode'] = $value;
85
        $this->options['form_params']['Mode'] = $value;
86
87
        return $this;
88
    }
89
90
    /**
91
     * @param string $value
92
     *
93
     * @return $this
94
     */
95
    public function withAsync($value)
96
    {
97
        $this->data['Async'] = $value;
98
        $this->options['form_params']['Async'] = $value;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @param string $value
105
     *
106
     * @return $this
107
     */
108
    public function withVideoUrl($value)
109
    {
110
        $this->data['VideoUrl'] = $value;
111
        $this->options['form_params']['VideoUrl'] = $value;
112
113
        return $this;
114
    }
115
}
116
117
/**
118
 * @method string getIsGif()
119
 * @method string getAsync()
120
 * @method string getVideoUrl()
121
 */
122
class GenerateVideoCover extends Rpc
123
{
124
125
    /**
126
     * @param string $value
127
     *
128
     * @return $this
129
     */
130
    public function withIsGif($value)
131
    {
132
        $this->data['IsGif'] = $value;
133
        $this->options['form_params']['IsGif'] = $value;
134
135
        return $this;
136
    }
137
138
    /**
139
     * @param string $value
140
     *
141
     * @return $this
142
     */
143
    public function withAsync($value)
144
    {
145
        $this->data['Async'] = $value;
146
        $this->options['form_params']['Async'] = $value;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @param string $value
153
     *
154
     * @return $this
155
     */
156
    public function withVideoUrl($value)
157
    {
158
        $this->data['VideoUrl'] = $value;
159
        $this->options['form_params']['VideoUrl'] = $value;
160
161
        return $this;
162
    }
163
}
164
165
/**
166
 * @method string getJobId()
167
 * @method string getAsync()
168
 */
169
class GetAsyncJobResult extends Rpc
170
{
171
172
    /**
173
     * @param string $value
174
     *
175
     * @return $this
176
     */
177
    public function withJobId($value)
178
    {
179
        $this->data['JobId'] = $value;
180
        $this->options['form_params']['JobId'] = $value;
181
182
        return $this;
183
    }
184
185
    /**
186
     * @param string $value
187
     *
188
     * @return $this
189
     */
190
    public function withAsync($value)
191
    {
192
        $this->data['Async'] = $value;
193
        $this->options['form_params']['Async'] = $value;
194
195
        return $this;
196
    }
197
}
198
199
/**
200
 * @method string getParams()
201
 * @method string getAsync()
202
 * @method string getRegisterUrl()
203
 * @method string getVideoUrl()
204
 */
205
class RecognizeVideoCastCrewList extends Rpc
206
{
207
208
    /**
209
     * @param string $value
210
     *
211
     * @return $this
212
     */
213
    public function withParams($value)
214
    {
215
        $this->data['Params'] = $value;
216
        $this->options['form_params']['Params'] = $value;
217
218
        return $this;
219
    }
220
221
    /**
222
     * @param string $value
223
     *
224
     * @return $this
225
     */
226
    public function withAsync($value)
227
    {
228
        $this->data['Async'] = $value;
229
        $this->options['form_params']['Async'] = $value;
230
231
        return $this;
232
    }
233
234
    /**
235
     * @param string $value
236
     *
237
     * @return $this
238
     */
239
    public function withRegisterUrl($value)
240
    {
241
        $this->data['RegisterUrl'] = $value;
242
        $this->options['form_params']['RegisterUrl'] = $value;
243
244
        return $this;
245
    }
246
247
    /**
248
     * @param string $value
249
     *
250
     * @return $this
251
     */
252
    public function withVideoUrl($value)
253
    {
254
        $this->data['VideoUrl'] = $value;
255
        $this->options['form_params']['VideoUrl'] = $value;
256
257
        return $this;
258
    }
259
}
260
261
/**
262
 * @method string getTemplate()
263
 * @method string getMinTime()
264
 * @method string getMaxTime()
265
 * @method string getAsync()
266
 * @method string getVideoUrl()
267
 */
268
class SplitVideoParts extends Rpc
269
{
270
271
    /**
272
     * @param string $value
273
     *
274
     * @return $this
275
     */
276
    public function withTemplate($value)
277
    {
278
        $this->data['Template'] = $value;
279
        $this->options['form_params']['Template'] = $value;
280
281
        return $this;
282
    }
283
284
    /**
285
     * @param string $value
286
     *
287
     * @return $this
288
     */
289
    public function withMinTime($value)
290
    {
291
        $this->data['MinTime'] = $value;
292
        $this->options['form_params']['MinTime'] = $value;
293
294
        return $this;
295
    }
296
297
    /**
298
     * @param string $value
299
     *
300
     * @return $this
301
     */
302
    public function withMaxTime($value)
303
    {
304
        $this->data['MaxTime'] = $value;
305
        $this->options['form_params']['MaxTime'] = $value;
306
307
        return $this;
308
    }
309
310
    /**
311
     * @param string $value
312
     *
313
     * @return $this
314
     */
315
    public function withAsync($value)
316
    {
317
        $this->data['Async'] = $value;
318
        $this->options['form_params']['Async'] = $value;
319
320
        return $this;
321
    }
322
323
    /**
324
     * @param string $value
325
     *
326
     * @return $this
327
     */
328
    public function withVideoUrl($value)
329
    {
330
        $this->data['VideoUrl'] = $value;
331
        $this->options['form_params']['VideoUrl'] = $value;
332
333
        return $this;
334
    }
335
}
336
337
/**
338
 * @method string getAsync()
339
 * @method string getVideoURL()
340
 */
341
class UnderstandVideoContent extends Rpc
342
{
343
344
    /**
345
     * @param string $value
346
     *
347
     * @return $this
348
     */
349
    public function withAsync($value)
350
    {
351
        $this->data['Async'] = $value;
352
        $this->options['form_params']['Async'] = $value;
353
354
        return $this;
355
    }
356
357
    /**
358
     * @param string $value
359
     *
360
     * @return $this
361
     */
362
    public function withVideoURL($value)
363
    {
364
        $this->data['VideoURL'] = $value;
365
        $this->options['form_params']['VideoURL'] = $value;
366
367
        return $this;
368
    }
369
}
370