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 ( 0ec37d...211a56 )
by
unknown
15:49 queued 08:23
created

CreateCommodity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 14
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A withContent() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Market\V20151101;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method DeleteCommodity deleteCommodity(array $options = [])
9
 * @method UpdateCommodity updateCommodity(array $options = [])
10
 * @method DescribeCommodities describeCommodities(array $options = [])
11
 * @method UploadCommodityFile uploadCommodityFile(array $options = [])
12
 * @method CreateCommodity createCommodity(array $options = [])
13
 * @method DescribeRate describeRate(array $options = [])
14
 * @method CreateRate createRate(array $options = [])
15
 * @method DescribeCommodity describeCommodity(array $options = [])
16
 * @method DescribeInstances describeInstances(array $options = [])
17
 * @method NotifyContractEvent notifyContractEvent(array $options = [])
18
 * @method DescribeProducts describeProducts(array $options = [])
19
 * @method BindImagePackage bindImagePackage(array $options = [])
20
 * @method DescribeProduct describeProduct(array $options = [])
21
 * @method DescribePrice describePrice(array $options = [])
22
 * @method DescribeOrder describeOrder(array $options = [])
23
 * @method DescribeInstance describeInstance(array $options = [])
24
 * @method CreateOrder createOrder(array $options = [])
25
 * @method PushMeteringData pushMeteringData(array $options = [])
26
 * @method DescribeLicense describeLicense(array $options = [])
27
 * @method ActivateLicense activateLicense(array $options = [])
28
 * @method QueryMarketImages queryMarketImages(array $options = [])
29
 * @method QueryMarketCategories queryMarketCategories(array $options = [])
30
 */
31
class MarketApiResolver extends ApiResolver
32
{
33
}
34
35
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
36
{
37
    /** @var string */
38
    public $product = 'Market';
39
40
    /** @var string */
41
    public $version = '2015-11-01';
42
43
    /** @var string */
44
    public $method = 'POST';
45
46
    /** @var string */
47
    public $serviceCode = 'yunmarket';
48
}
49
50
/**
51
 * @method string getCommodityId()
52
 * @method $this withCommodityId($value)
53
 */
54
class DeleteCommodity extends Rpc
55
{
56
57
    /** @var string */
58
    public $method = 'PUT';
59
}
60
61
/**
62
 * @method string getCommodityId()
63
 * @method $this withCommodityId($value)
64
 * @method string getContent()
65
 * @method $this withContent($value)
66
 */
67
class UpdateCommodity extends Rpc
68
{
69
70
    /** @var string */
71
    public $method = 'PUT';
72
}
73
74
/**
75
 * @method string getCommodityGmtModifiedTo()
76
 * @method $this withCommodityGmtModifiedTo($value)
77
 * @method string getCommodityGmtModifiedFrom()
78
 * @method $this withCommodityGmtModifiedFrom($value)
79
 * @method string getCommodityId()
80
 * @method $this withCommodityId($value)
81
 * @method string getCommodityGmtPublishFrom()
82
 * @method $this withCommodityGmtPublishFrom($value)
83
 * @method string getCommodityStatuses()
84
 * @method $this withCommodityStatuses($value)
85
 * @method string getPageNumber()
86
 * @method $this withPageNumber($value)
87
 * @method string getCommodityGmtCreatedFrom()
88
 * @method $this withCommodityGmtCreatedFrom($value)
89
 * @method string getCommodityIds()
90
 * @method $this withCommodityIds($value)
91
 * @method string getCommodityGmtCreatedTo()
92
 * @method $this withCommodityGmtCreatedTo($value)
93
 * @method string getPageSize()
94
 * @method $this withPageSize($value)
95
 * @method string getCommodityGmtPublishTo()
96
 * @method $this withCommodityGmtPublishTo($value)
97
 * @method string getCommodityAuditStatuses()
98
 * @method $this withCommodityAuditStatuses($value)
99
 * @method string getProperties()
100
 * @method $this withProperties($value)
101
 * @method string getCommodityCategoryIds()
102
 * @method $this withCommodityCategoryIds($value)
103
 */
104
class DescribeCommodities extends Rpc
105
{
106
107
    /** @var string */
108
    public $method = 'GET';
109
}
110
111
/**
112
 * @method string getFileResourceType()
113
 * @method $this withFileResourceType($value)
114
 * @method string getFileResource()
115
 * @method $this withFileResource($value)
116
 * @method string getFileContentType()
117
 * @method $this withFileContentType($value)
118
 */
119
class UploadCommodityFile extends Rpc
120
{
121
}
122
123
/**
124
 * @method string getApplicationId()
125
 * @method $this withApplicationId($value)
126
 * @method string getContent()
127
 */
128
class CreateCommodity extends Rpc
129
{
130
131
    /**
132
     * @param string $value
133
     *
134
     * @return $this
135
     */
136
    public function withContent($value)
137
    {
138
        $this->data['Content'] = $value;
139
        $this->options['form_params']['Content'] = $value;
140
141
        return $this;
142
    }
143
}
144
145
/**
146
 * @method string getOrderId()
147
 * @method $this withOrderId($value)
148
 */
149
class DescribeRate extends Rpc
150
{
151
}
152
153
/**
154
 * @method string getScore()
155
 * @method $this withScore($value)
156
 * @method string getOrderId()
157
 * @method $this withOrderId($value)
158
 * @method string getRequestId()
159
 * @method $this withRequestId($value)
160
 * @method string getContent()
161
 * @method $this withContent($value)
162
 */
163
class CreateRate extends Rpc
164
{
165
}
166
167
/**
168
 * @method string getCommodityId()
169
 * @method $this withCommodityId($value)
170
 */
171
class DescribeCommodity extends Rpc
172
{
173
174
    /** @var string */
175
    public $method = 'GET';
176
}
177
178
/**
179
 * @method string getPageSize()
180
 * @method $this withPageSize($value)
181
 * @method string getPageNumber()
182
 * @method $this withPageNumber($value)
183
 * @method string getProductType()
184
 * @method $this withProductType($value)
185
 */
186
class DescribeInstances extends Rpc
187
{
188
}
189
190
/**
191
 * @method string getEventMessage()
192
 * @method $this withEventMessage($value)
193
 * @method string getEventType()
194
 * @method $this withEventType($value)
195
 */
196
class NotifyContractEvent extends Rpc
197
{
198
}
199
200
/**
201
 * @method array getFilter()
202
 * @method string getSearchTerm()
203
 * @method $this withSearchTerm($value)
204
 * @method string getPageSize()
205
 * @method $this withPageSize($value)
206
 * @method string getPageNumber()
207
 * @method $this withPageNumber($value)
208
 */
209
class DescribeProducts extends Rpc
210
{
211
212
    /**
213
     * @param array $filter
214
     *
215
     * @return $this
216
     */
217
	public function withFilter(array $filter)
218
	{
219
	    $this->data['Filter'] = $filter;
220
		foreach ($filter as $depth1 => $depth1Value) {
221
			$this->options['query']['Filter.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
222
			$this->options['query']['Filter.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
223
		}
224
225
		return $this;
226
    }
227
}
228
229
/**
230
 * @method string getEcsInstanceId()
231
 * @method $this withEcsInstanceId($value)
232
 * @method string getImagePackageInstanceId()
233
 * @method $this withImagePackageInstanceId($value)
234
 */
235
class BindImagePackage extends Rpc
236
{
237
}
238
239
/**
240
 * @method string getCode()
241
 * @method $this withCode($value)
242
 * @method string getQueryDraft()
243
 * @method $this withQueryDraft($value)
244
 * @method string getAliUid()
245
 * @method $this withAliUid($value)
246
 */
247
class DescribeProduct extends Rpc
248
{
249
}
250
251
/**
252
 * @method string getCommodity()
253
 * @method $this withCommodity($value)
254
 * @method string getOrderType()
255
 * @method $this withOrderType($value)
256
 */
257
class DescribePrice extends Rpc
258
{
259
}
260
261
/**
262
 * @method string getOrderId()
263
 * @method $this withOrderId($value)
264
 */
265
class DescribeOrder extends Rpc
266
{
267
}
268
269
/**
270
 * @method string getOwnerId()
271
 * @method $this withOwnerId($value)
272
 * @method string getInstanceId()
273
 * @method $this withInstanceId($value)
274
 * @method string getOrderType()
275
 * @method $this withOrderType($value)
276
 */
277
class DescribeInstance extends Rpc
278
{
279
}
280
281
/**
282
 * @method string getOrderSouce()
283
 * @method $this withOrderSouce($value)
284
 * @method string getCommodity()
285
 * @method $this withCommodity($value)
286
 * @method string getClientToken()
287
 * @method $this withClientToken($value)
288
 * @method string getOwnerId()
289
 * @method $this withOwnerId($value)
290
 * @method string getPaymentType()
291
 * @method $this withPaymentType($value)
292
 * @method string getOrderType()
293
 * @method $this withOrderType($value)
294
 */
295
class CreateOrder extends Rpc
296
{
297
}
298
299
/**
300
 * @method string getMetering()
301
 * @method $this withMetering($value)
302
 */
303
class PushMeteringData extends Rpc
304
{
305
}
306
307
/**
308
 * @method string getLicenseCode()
309
 * @method $this withLicenseCode($value)
310
 */
311
class DescribeLicense extends Rpc
312
{
313
}
314
315
/**
316
 * @method string getIdentification()
317
 * @method $this withIdentification($value)
318
 * @method string getLicenseCode()
319
 * @method $this withLicenseCode($value)
320
 */
321
class ActivateLicense extends Rpc
322
{
323
}
324
325
/**
326
 * @method string getParam()
327
 * @method $this withParam($value)
328
 */
329
class QueryMarketImages extends Rpc
330
{
331
}
332
333
class QueryMarketCategories extends Rpc
334
{
335
}
336