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 ( 2f6c52...d46a6e )
by
unknown
06:26
created

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