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 ( 078fdd...211950 )
by
unknown
06:36
created

RecognizeFood::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\Imagerecog\V20190930;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ClassifyingRubbish classifyingRubbish(array $options = [])
9
 * @method DetectFruits detectFruits(array $options = [])
10
 * @method DetectImageElements detectImageElements(array $options = [])
11
 * @method EvaluateCertificateQuality evaluateCertificateQuality(array $options = [])
12
 * @method RecognizeFood recognizeFood(array $options = [])
13
 * @method RecognizeImageColor recognizeImageColor(array $options = [])
14
 * @method RecognizeImageStyle recognizeImageStyle(array $options = [])
15
 * @method RecognizeLogo recognizeLogo(array $options = [])
16
 * @method RecognizeScene recognizeScene(array $options = [])
17
 * @method RecognizeVehicleType recognizeVehicleType(array $options = [])
18
 * @method TaggingImage taggingImage(array $options = [])
19
 */
20
class ImagerecogApiResolver extends ApiResolver
21
{
22
}
23
24
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
25
{
26
    /** @var string */
27
    public $product = 'imagerecog';
28
29
    /** @var string */
30
    public $version = '2019-09-30';
31
32
    /** @var string */
33
    public $method = 'POST';
34
35
    /** @var string */
36
    public $serviceCode = 'imagerecog';
37
}
38
39
/**
40
 * @method string getImageURL()
41
 */
42
class ClassifyingRubbish extends Rpc
43
{
44
45
    /**
46
     * @param string $value
47
     *
48
     * @return $this
49
     */
50
    public function withImageURL($value)
51
    {
52
        $this->data['ImageURL'] = $value;
53
        $this->options['form_params']['ImageURL'] = $value;
54
55
        return $this;
56
    }
57
}
58
59
/**
60
 * @method string getImageURL()
61
 */
62
class DetectFruits extends Rpc
63
{
64
65
    /**
66
     * @param string $value
67
     *
68
     * @return $this
69
     */
70
    public function withImageURL($value)
71
    {
72
        $this->data['ImageURL'] = $value;
73
        $this->options['form_params']['ImageURL'] = $value;
74
75
        return $this;
76
    }
77
}
78
79
/**
80
 * @method string getUrl()
81
 */
82
class DetectImageElements extends Rpc
83
{
84
85
    /**
86
     * @param string $value
87
     *
88
     * @return $this
89
     */
90
    public function withUrl($value)
91
    {
92
        $this->data['Url'] = $value;
93
        $this->options['form_params']['Url'] = $value;
94
95
        return $this;
96
    }
97
}
98
99
/**
100
 * @method string getType()
101
 * @method string getImageURL()
102
 */
103
class EvaluateCertificateQuality extends Rpc
104
{
105
106
    /**
107
     * @param string $value
108
     *
109
     * @return $this
110
     */
111
    public function withType($value)
112
    {
113
        $this->data['Type'] = $value;
114
        $this->options['form_params']['Type'] = $value;
115
116
        return $this;
117
    }
118
119
    /**
120
     * @param string $value
121
     *
122
     * @return $this
123
     */
124
    public function withImageURL($value)
125
    {
126
        $this->data['ImageURL'] = $value;
127
        $this->options['form_params']['ImageURL'] = $value;
128
129
        return $this;
130
    }
131
}
132
133
/**
134
 * @method string getImageURL()
135
 */
136
class RecognizeFood extends Rpc
137
{
138
139
    /**
140
     * @param string $value
141
     *
142
     * @return $this
143
     */
144
    public function withImageURL($value)
145
    {
146
        $this->data['ImageURL'] = $value;
147
        $this->options['form_params']['ImageURL'] = $value;
148
149
        return $this;
150
    }
151
}
152
153
/**
154
 * @method string getUrl()
155
 * @method string getColorCount()
156
 */
157
class RecognizeImageColor extends Rpc
158
{
159
160
    /**
161
     * @param string $value
162
     *
163
     * @return $this
164
     */
165
    public function withUrl($value)
166
    {
167
        $this->data['Url'] = $value;
168
        $this->options['form_params']['Url'] = $value;
169
170
        return $this;
171
    }
172
173
    /**
174
     * @param string $value
175
     *
176
     * @return $this
177
     */
178
    public function withColorCount($value)
179
    {
180
        $this->data['ColorCount'] = $value;
181
        $this->options['form_params']['ColorCount'] = $value;
182
183
        return $this;
184
    }
185
}
186
187
/**
188
 * @method string getUrl()
189
 */
190
class RecognizeImageStyle extends Rpc
191
{
192
193
    /**
194
     * @param string $value
195
     *
196
     * @return $this
197
     */
198
    public function withUrl($value)
199
    {
200
        $this->data['Url'] = $value;
201
        $this->options['form_params']['Url'] = $value;
202
203
        return $this;
204
    }
205
}
206
207
/**
208
 * @method array getTasks()
209
 */
210
class RecognizeLogo extends Rpc
211
{
212
213
    /**
214
     * @param array $tasks
215
     *
216
     * @return $this
217
     */
218
	public function withTasks(array $tasks)
219
	{
220
	    $this->data['Tasks'] = $tasks;
221
		foreach ($tasks as $depth1 => $depth1Value) {
222
			if(isset($depth1Value['ImageURL'])){
223
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
224
			}
225
		}
226
227
		return $this;
228
    }
229
}
230
231
/**
232
 * @method string getImageType()
233
 * @method string getImageURL()
234
 */
235
class RecognizeScene extends Rpc
236
{
237
238
    /**
239
     * @param string $value
240
     *
241
     * @return $this
242
     */
243
    public function withImageType($value)
244
    {
245
        $this->data['ImageType'] = $value;
246
        $this->options['form_params']['ImageType'] = $value;
247
248
        return $this;
249
    }
250
251
    /**
252
     * @param string $value
253
     *
254
     * @return $this
255
     */
256
    public function withImageURL($value)
257
    {
258
        $this->data['ImageURL'] = $value;
259
        $this->options['form_params']['ImageURL'] = $value;
260
261
        return $this;
262
    }
263
}
264
265
/**
266
 * @method string getImageURL()
267
 */
268
class RecognizeVehicleType extends Rpc
269
{
270
271
    /**
272
     * @param string $value
273
     *
274
     * @return $this
275
     */
276
    public function withImageURL($value)
277
    {
278
        $this->data['ImageURL'] = $value;
279
        $this->options['form_params']['ImageURL'] = $value;
280
281
        return $this;
282
    }
283
}
284
285
/**
286
 * @method string getImageType()
287
 * @method string getImageURL()
288
 */
289
class TaggingImage extends Rpc
290
{
291
292
    /**
293
     * @param string $value
294
     *
295
     * @return $this
296
     */
297
    public function withImageType($value)
298
    {
299
        $this->data['ImageType'] = $value;
300
        $this->options['form_params']['ImageType'] = $value;
301
302
        return $this;
303
    }
304
305
    /**
306
     * @param string $value
307
     *
308
     * @return $this
309
     */
310
    public function withImageURL($value)
311
    {
312
        $this->data['ImageURL'] = $value;
313
        $this->options['form_params']['ImageURL'] = $value;
314
315
        return $this;
316
    }
317
}
318