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 ( af2076...44c09e )
by
unknown
06:12
created

EvaluateCertificateQuality   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

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