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 ( 089f36...6e9f9e )
by
unknown
12:20 queued 05:14
created

SegmentBody::withImageUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Ivpd\V20190625;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ChangeImageSize changeImageSize(array $options = [])
9
 * @method DetectImageElements detectImageElements(array $options = [])
10
 * @method ExtendImageStyle extendImageStyle(array $options = [])
11
 * @method MakeSuperResolutionImage makeSuperResolutionImage(array $options = [])
12
 * @method RecognizeImageColor recognizeImageColor(array $options = [])
13
 * @method RecognizeImageStyle recognizeImageStyle(array $options = [])
14
 * @method RecolorImage recolorImage(array $options = [])
15
 * @method SegmentBody segmentBody(array $options = [])
16
 * @method SegmentImage segmentImage(array $options = [])
17
 */
18
class IvpdApiResolver extends ApiResolver
19
{
20
}
21
22
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
23
{
24
    /** @var string */
25
    public $product = 'ivpd';
26
27
    /** @var string */
28
    public $version = '2019-06-25';
29
30
    /** @var string */
31
    public $method = 'POST';
32
33
    /** @var string */
34
    public $serviceCode = 'ivpd';
35
}
36
37
/**
38
 * @method string getUrl()
39
 * @method string getWidth()
40
 * @method string getHeight()
41
 */
42
class ChangeImageSize extends Rpc
43
{
44
45
    /**
46
     * @param string $value
47
     *
48
     * @return $this
49
     */
50
    public function withUrl($value)
51
    {
52
        $this->data['Url'] = $value;
53
        $this->options['form_params']['Url'] = $value;
54
55
        return $this;
56
    }
57
58
    /**
59
     * @param string $value
60
     *
61
     * @return $this
62
     */
63
    public function withWidth($value)
64
    {
65
        $this->data['Width'] = $value;
66
        $this->options['form_params']['Width'] = $value;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @param string $value
73
     *
74
     * @return $this
75
     */
76
    public function withHeight($value)
77
    {
78
        $this->data['Height'] = $value;
79
        $this->options['form_params']['Height'] = $value;
80
81
        return $this;
82
    }
83
}
84
85
/**
86
 * @method string getUrl()
87
 */
88
class DetectImageElements extends Rpc
89
{
90
91
    /**
92
     * @param string $value
93
     *
94
     * @return $this
95
     */
96
    public function withUrl($value)
97
    {
98
        $this->data['Url'] = $value;
99
        $this->options['form_params']['Url'] = $value;
100
101
        return $this;
102
    }
103
}
104
105
/**
106
 * @method string getMajorUrl()
107
 * @method string getStyleUrl()
108
 */
109
class ExtendImageStyle extends Rpc
110
{
111
112
    /**
113
     * @param string $value
114
     *
115
     * @return $this
116
     */
117
    public function withMajorUrl($value)
118
    {
119
        $this->data['MajorUrl'] = $value;
120
        $this->options['form_params']['MajorUrl'] = $value;
121
122
        return $this;
123
    }
124
125
    /**
126
     * @param string $value
127
     *
128
     * @return $this
129
     */
130
    public function withStyleUrl($value)
131
    {
132
        $this->data['StyleUrl'] = $value;
133
        $this->options['form_params']['StyleUrl'] = $value;
134
135
        return $this;
136
    }
137
}
138
139
/**
140
 * @method string getUrl()
141
 */
142
class MakeSuperResolutionImage extends Rpc
143
{
144
145
    /**
146
     * @param string $value
147
     *
148
     * @return $this
149
     */
150
    public function withUrl($value)
151
    {
152
        $this->data['Url'] = $value;
153
        $this->options['form_params']['Url'] = $value;
154
155
        return $this;
156
    }
157
}
158
159
/**
160
 * @method string getUrl()
161
 * @method string getColorCount()
162
 */
163
class RecognizeImageColor extends Rpc
164
{
165
166
    /**
167
     * @param string $value
168
     *
169
     * @return $this
170
     */
171
    public function withUrl($value)
172
    {
173
        $this->data['Url'] = $value;
174
        $this->options['form_params']['Url'] = $value;
175
176
        return $this;
177
    }
178
179
    /**
180
     * @param string $value
181
     *
182
     * @return $this
183
     */
184
    public function withColorCount($value)
185
    {
186
        $this->data['ColorCount'] = $value;
187
        $this->options['form_params']['ColorCount'] = $value;
188
189
        return $this;
190
    }
191
}
192
193
/**
194
 * @method string getUrl()
195
 */
196
class RecognizeImageStyle extends Rpc
197
{
198
199
    /**
200
     * @param string $value
201
     *
202
     * @return $this
203
     */
204
    public function withUrl($value)
205
    {
206
        $this->data['Url'] = $value;
207
        $this->options['form_params']['Url'] = $value;
208
209
        return $this;
210
    }
211
}
212
213
/**
214
 * @method array getColorTemplate()
215
 * @method string getUrl()
216
 * @method string getMode()
217
 * @method string getColorCount()
218
 * @method string getRefUrl()
219
 */
220
class RecolorImage extends Rpc
221
{
222
223
    /**
224
     * @param array $colorTemplate
225
     *
226
     * @return $this
227
     */
228
	public function withColorTemplate(array $colorTemplate)
229
	{
230
	    $this->data['ColorTemplate'] = $colorTemplate;
231
		foreach ($colorTemplate as $depth1 => $depth1Value) {
232
			$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
233
		}
234
235
		return $this;
236
    }
237
238
    /**
239
     * @param string $value
240
     *
241
     * @return $this
242
     */
243
    public function withUrl($value)
244
    {
245
        $this->data['Url'] = $value;
246
        $this->options['form_params']['Url'] = $value;
247
248
        return $this;
249
    }
250
251
    /**
252
     * @param string $value
253
     *
254
     * @return $this
255
     */
256
    public function withMode($value)
257
    {
258
        $this->data['Mode'] = $value;
259
        $this->options['form_params']['Mode'] = $value;
260
261
        return $this;
262
    }
263
264
    /**
265
     * @param string $value
266
     *
267
     * @return $this
268
     */
269
    public function withColorCount($value)
270
    {
271
        $this->data['ColorCount'] = $value;
272
        $this->options['form_params']['ColorCount'] = $value;
273
274
        return $this;
275
    }
276
277
    /**
278
     * @param string $value
279
     *
280
     * @return $this
281
     */
282
    public function withRefUrl($value)
283
    {
284
        $this->data['RefUrl'] = $value;
285
        $this->options['form_params']['RefUrl'] = $value;
286
287
        return $this;
288
    }
289
}
290
291
/**
292
 * @method string getImageUrl()
293
 */
294
class SegmentBody extends Rpc
295
{
296
297
    /**
298
     * @param string $value
299
     *
300
     * @return $this
301
     */
302
    public function withImageUrl($value)
303
    {
304
        $this->data['ImageUrl'] = $value;
305
        $this->options['form_params']['ImageUrl'] = $value;
306
307
        return $this;
308
    }
309
}
310
311
/**
312
 * @method string getUrl()
313
 */
314
class SegmentImage extends Rpc
315
{
316
317
    /**
318
     * @param string $value
319
     *
320
     * @return $this
321
     */
322
    public function withUrl($value)
323
    {
324
        $this->data['Url'] = $value;
325
        $this->options['form_params']['Url'] = $value;
326
327
        return $this;
328
    }
329
}
330