1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Yandex\Metrica\Stat\Models; |
4
|
|
|
|
5
|
|
|
use Yandex\Common\Model; |
6
|
|
|
|
7
|
|
|
class DrillDownComparisonParams extends Model |
8
|
|
|
{ |
9
|
|
|
|
10
|
|
|
protected $id = null; |
11
|
|
|
|
12
|
|
|
protected $metrics = null; |
13
|
|
|
|
14
|
|
|
protected $accuracy = null; |
15
|
|
|
|
16
|
|
|
protected $callback = null; |
17
|
|
|
|
18
|
|
|
protected $date1A = null; |
19
|
|
|
|
20
|
|
|
protected $date1B = null; |
21
|
|
|
|
22
|
|
|
protected $date2A = null; |
23
|
|
|
|
24
|
|
|
protected $date2B = null; |
25
|
|
|
|
26
|
|
|
protected $dimensions = null; |
27
|
|
|
|
28
|
|
|
protected $filters = null; |
29
|
|
|
|
30
|
|
|
protected $filtersA = null; |
31
|
|
|
|
32
|
|
|
protected $filtersB = null; |
33
|
|
|
|
34
|
|
|
protected $includeUndefined = null; |
35
|
|
|
|
36
|
|
|
protected $lang = null; |
37
|
|
|
|
38
|
|
|
protected $limit = null; |
39
|
|
|
|
40
|
|
|
protected $offset = null; |
41
|
|
|
|
42
|
|
|
protected $preset = null; |
43
|
|
|
|
44
|
|
|
protected $pretty = null; |
45
|
|
|
|
46
|
|
|
protected $sort = null; |
47
|
|
|
|
48
|
|
|
protected $parentId = null; |
49
|
|
|
|
50
|
|
|
protected $mappingClasses = []; |
51
|
|
|
|
52
|
|
|
protected $propNameMap = [ |
53
|
|
|
'date1_a' => 'date1A', |
54
|
|
|
'date1_b' => 'date1B', |
55
|
|
|
'date2_a' => 'date2A', |
56
|
|
|
'date2_b' => 'date2B', |
57
|
|
|
'filters_a' => 'filtersA', |
58
|
|
|
'filters_b' => 'filtersB', |
59
|
|
|
'include_undefined' => 'includeUndefined', |
60
|
|
|
'parent_id' => 'parentId' |
61
|
|
|
]; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* Retrieve the id property |
65
|
|
|
* |
66
|
|
|
* @return int|null |
67
|
|
|
*/ |
68
|
1 |
|
public function getId() |
69
|
|
|
{ |
70
|
1 |
|
return $this->id; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* Set the id property |
75
|
|
|
* |
76
|
|
|
* @param int $id |
77
|
|
|
* @return $this |
78
|
|
|
*/ |
79
|
1 |
|
public function setId($id) |
80
|
|
|
{ |
81
|
1 |
|
$this->id = $id; |
82
|
1 |
|
return $this; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* Retrieve the metrics property |
87
|
|
|
* |
88
|
|
|
* @return string|null |
89
|
|
|
*/ |
90
|
1 |
|
public function getMetrics() |
91
|
|
|
{ |
92
|
1 |
|
return $this->metrics; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* Set the metrics property |
97
|
|
|
* |
98
|
|
|
* @param string $metrics |
99
|
|
|
* @return $this |
100
|
|
|
*/ |
101
|
1 |
|
public function setMetrics($metrics) |
102
|
|
|
{ |
103
|
1 |
|
$this->metrics = $metrics; |
104
|
1 |
|
return $this; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* Retrieve the accuracy property |
109
|
|
|
* |
110
|
|
|
* @return string|null |
111
|
|
|
*/ |
112
|
1 |
|
public function getAccuracy() |
113
|
|
|
{ |
114
|
1 |
|
return $this->accuracy; |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* Set the accuracy property |
119
|
|
|
* |
120
|
|
|
* @param string $accuracy |
121
|
|
|
* @return $this |
122
|
|
|
*/ |
123
|
1 |
|
public function setAccuracy($accuracy) |
124
|
|
|
{ |
125
|
1 |
|
$this->accuracy = $accuracy; |
126
|
1 |
|
return $this; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* Retrieve the callback property |
131
|
|
|
* |
132
|
|
|
* @return string|null |
133
|
|
|
*/ |
134
|
1 |
|
public function getCallback() |
135
|
|
|
{ |
136
|
1 |
|
return $this->callback; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* Set the callback property |
141
|
|
|
* |
142
|
|
|
* @param string $callback |
143
|
|
|
* @return $this |
144
|
|
|
*/ |
145
|
1 |
|
public function setCallback($callback) |
146
|
|
|
{ |
147
|
1 |
|
$this->callback = $callback; |
148
|
1 |
|
return $this; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* Retrieve the date1A property |
153
|
|
|
* |
154
|
|
|
* @return string|null |
155
|
|
|
*/ |
156
|
1 |
|
public function getDate1A() |
157
|
|
|
{ |
158
|
1 |
|
return $this->date1A; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* Set the date1A property |
163
|
|
|
* |
164
|
|
|
* @param string $date1A |
165
|
|
|
* @return $this |
166
|
|
|
*/ |
167
|
1 |
|
public function setDate1A($date1A) |
168
|
|
|
{ |
169
|
1 |
|
$this->date1A = $date1A; |
170
|
1 |
|
return $this; |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
/** |
174
|
|
|
* Retrieve the date1B property |
175
|
|
|
* |
176
|
|
|
* @return string|null |
177
|
|
|
*/ |
178
|
1 |
|
public function getDate1B() |
179
|
|
|
{ |
180
|
1 |
|
return $this->date1B; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* Set the date1B property |
185
|
|
|
* |
186
|
|
|
* @param string $date1B |
187
|
|
|
* @return $this |
188
|
|
|
*/ |
189
|
1 |
|
public function setDate1B($date1B) |
190
|
|
|
{ |
191
|
1 |
|
$this->date1B = $date1B; |
192
|
1 |
|
return $this; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* Retrieve the date2A property |
197
|
|
|
* |
198
|
|
|
* @return string|null |
199
|
|
|
*/ |
200
|
1 |
|
public function getDate2A() |
201
|
|
|
{ |
202
|
1 |
|
return $this->date2A; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* Set the date2A property |
207
|
|
|
* |
208
|
|
|
* @param string $date2A |
209
|
|
|
* @return $this |
210
|
|
|
*/ |
211
|
1 |
|
public function setDate2A($date2A) |
212
|
|
|
{ |
213
|
1 |
|
$this->date2A = $date2A; |
214
|
1 |
|
return $this; |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* Retrieve the date2B property |
219
|
|
|
* |
220
|
|
|
* @return string|null |
221
|
|
|
*/ |
222
|
1 |
|
public function getDate2B() |
223
|
|
|
{ |
224
|
1 |
|
return $this->date2B; |
225
|
|
|
} |
226
|
|
|
|
227
|
|
|
/** |
228
|
|
|
* Set the date2B property |
229
|
|
|
* |
230
|
|
|
* @param string $date2B |
231
|
|
|
* @return $this |
232
|
|
|
*/ |
233
|
1 |
|
public function setDate2B($date2B) |
234
|
|
|
{ |
235
|
1 |
|
$this->date2B = $date2B; |
236
|
1 |
|
return $this; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* Retrieve the dimensions property |
241
|
|
|
* |
242
|
|
|
* @return string|null |
243
|
|
|
*/ |
244
|
1 |
|
public function getDimensions() |
245
|
|
|
{ |
246
|
1 |
|
return $this->dimensions; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* Set the dimensions property |
251
|
|
|
* |
252
|
|
|
* @param string $dimensions |
253
|
|
|
* @return $this |
254
|
|
|
*/ |
255
|
1 |
|
public function setDimensions($dimensions) |
256
|
|
|
{ |
257
|
1 |
|
$this->dimensions = $dimensions; |
258
|
1 |
|
return $this; |
259
|
|
|
} |
260
|
|
|
|
261
|
|
|
/** |
262
|
|
|
* Retrieve the filters property |
263
|
|
|
* |
264
|
|
|
* @return string|null |
265
|
|
|
*/ |
266
|
1 |
|
public function getFilters() |
267
|
|
|
{ |
268
|
1 |
|
return $this->filters; |
269
|
|
|
} |
270
|
|
|
|
271
|
|
|
/** |
272
|
|
|
* Set the filters property |
273
|
|
|
* |
274
|
|
|
* @param string $filters |
275
|
|
|
* @return $this |
276
|
|
|
*/ |
277
|
1 |
|
public function setFilters($filters) |
278
|
|
|
{ |
279
|
1 |
|
$this->filters = $filters; |
280
|
1 |
|
return $this; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* Retrieve the filtersA property |
285
|
|
|
* |
286
|
|
|
* @return string|null |
287
|
|
|
*/ |
288
|
1 |
|
public function getFiltersA() |
289
|
|
|
{ |
290
|
1 |
|
return $this->filtersA; |
291
|
|
|
} |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* Set the filtersA property |
295
|
|
|
* |
296
|
|
|
* @param string $filtersA |
297
|
|
|
* @return $this |
298
|
|
|
*/ |
299
|
1 |
|
public function setFiltersA($filtersA) |
300
|
|
|
{ |
301
|
1 |
|
$this->filtersA = $filtersA; |
302
|
1 |
|
return $this; |
303
|
|
|
} |
304
|
|
|
|
305
|
|
|
/** |
306
|
|
|
* Retrieve the filtersB property |
307
|
|
|
* |
308
|
|
|
* @return string|null |
309
|
|
|
*/ |
310
|
1 |
|
public function getFiltersB() |
311
|
|
|
{ |
312
|
1 |
|
return $this->filtersB; |
313
|
|
|
} |
314
|
|
|
|
315
|
|
|
/** |
316
|
|
|
* Set the filtersB property |
317
|
|
|
* |
318
|
|
|
* @param string $filtersB |
319
|
|
|
* @return $this |
320
|
|
|
*/ |
321
|
1 |
|
public function setFiltersB($filtersB) |
322
|
|
|
{ |
323
|
1 |
|
$this->filtersB = $filtersB; |
324
|
1 |
|
return $this; |
325
|
|
|
} |
326
|
|
|
|
327
|
|
|
/** |
328
|
|
|
* Retrieve the includeUndefined property |
329
|
|
|
* |
330
|
|
|
* @return bool|null |
331
|
|
|
*/ |
332
|
1 |
|
public function getIncludeUndefined() |
333
|
|
|
{ |
334
|
1 |
|
return $this->includeUndefined; |
335
|
|
|
} |
336
|
|
|
|
337
|
|
|
/** |
338
|
|
|
* Set the includeUndefined property |
339
|
|
|
* |
340
|
|
|
* @param bool $includeUndefined |
341
|
|
|
* @return $this |
342
|
|
|
*/ |
343
|
1 |
|
public function setIncludeUndefined($includeUndefined) |
344
|
|
|
{ |
345
|
1 |
|
$this->includeUndefined = $includeUndefined; |
346
|
1 |
|
return $this; |
347
|
|
|
} |
348
|
|
|
|
349
|
|
|
/** |
350
|
|
|
* Retrieve the lang property |
351
|
|
|
* |
352
|
|
|
* @return string|null |
353
|
|
|
*/ |
354
|
1 |
|
public function getLang() |
355
|
|
|
{ |
356
|
1 |
|
return $this->lang; |
357
|
|
|
} |
358
|
|
|
|
359
|
|
|
/** |
360
|
|
|
* Set the lang property |
361
|
|
|
* |
362
|
|
|
* @param string $lang |
363
|
|
|
* @return $this |
364
|
|
|
*/ |
365
|
1 |
|
public function setLang($lang) |
366
|
|
|
{ |
367
|
1 |
|
$this->lang = $lang; |
368
|
1 |
|
return $this; |
369
|
|
|
} |
370
|
|
|
|
371
|
|
|
/** |
372
|
|
|
* Retrieve the limit property |
373
|
|
|
* |
374
|
|
|
* @return int|null |
375
|
|
|
*/ |
376
|
1 |
|
public function getLimit() |
377
|
|
|
{ |
378
|
1 |
|
return $this->limit; |
379
|
|
|
} |
380
|
|
|
|
381
|
|
|
/** |
382
|
|
|
* Set the limit property |
383
|
|
|
* |
384
|
|
|
* @param int $limit |
385
|
|
|
* @return $this |
386
|
|
|
*/ |
387
|
1 |
|
public function setLimit($limit) |
388
|
|
|
{ |
389
|
1 |
|
$this->limit = $limit; |
390
|
1 |
|
return $this; |
391
|
|
|
} |
392
|
|
|
|
393
|
|
|
/** |
394
|
|
|
* Retrieve the offset property |
395
|
|
|
* |
396
|
|
|
* @return int|null |
397
|
|
|
*/ |
398
|
1 |
|
public function getOffset() |
399
|
|
|
{ |
400
|
1 |
|
return $this->offset; |
401
|
|
|
} |
402
|
|
|
|
403
|
|
|
/** |
404
|
|
|
* Set the offset property |
405
|
|
|
* |
406
|
|
|
* @param int $offset |
407
|
|
|
* @return $this |
408
|
|
|
*/ |
409
|
1 |
|
public function setOffset($offset) |
410
|
|
|
{ |
411
|
1 |
|
$this->offset = $offset; |
412
|
1 |
|
return $this; |
413
|
|
|
} |
414
|
|
|
|
415
|
|
|
/** |
416
|
|
|
* Retrieve the preset property |
417
|
|
|
* |
418
|
|
|
* @return string|null |
419
|
|
|
*/ |
420
|
1 |
|
public function getPreset() |
421
|
|
|
{ |
422
|
1 |
|
return $this->preset; |
423
|
|
|
} |
424
|
|
|
|
425
|
|
|
/** |
426
|
|
|
* Set the preset property |
427
|
|
|
* |
428
|
|
|
* @param string $preset |
429
|
|
|
* @return $this |
430
|
|
|
*/ |
431
|
1 |
|
public function setPreset($preset) |
432
|
|
|
{ |
433
|
1 |
|
$this->preset = $preset; |
434
|
1 |
|
return $this; |
435
|
|
|
} |
436
|
|
|
|
437
|
|
|
/** |
438
|
|
|
* Retrieve the pretty property |
439
|
|
|
* |
440
|
|
|
* @return bool|null |
441
|
|
|
*/ |
442
|
1 |
|
public function getPretty() |
443
|
|
|
{ |
444
|
1 |
|
return $this->pretty; |
445
|
|
|
} |
446
|
|
|
|
447
|
|
|
/** |
448
|
|
|
* Set the pretty property |
449
|
|
|
* |
450
|
|
|
* @param bool $pretty |
451
|
|
|
* @return $this |
452
|
|
|
*/ |
453
|
1 |
|
public function setPretty($pretty) |
454
|
|
|
{ |
455
|
1 |
|
$this->pretty = $pretty; |
456
|
1 |
|
return $this; |
457
|
|
|
} |
458
|
|
|
|
459
|
|
|
/** |
460
|
|
|
* Retrieve the sort property |
461
|
|
|
* |
462
|
|
|
* @return string|null |
463
|
|
|
*/ |
464
|
1 |
|
public function getSort() |
465
|
|
|
{ |
466
|
1 |
|
return $this->sort; |
467
|
|
|
} |
468
|
|
|
|
469
|
|
|
/** |
470
|
|
|
* Set the sort property |
471
|
|
|
* |
472
|
|
|
* @param string $sort |
473
|
|
|
* @return $this |
474
|
|
|
*/ |
475
|
1 |
|
public function setSort($sort) |
476
|
|
|
{ |
477
|
1 |
|
$this->sort = $sort; |
478
|
1 |
|
return $this; |
479
|
|
|
} |
480
|
|
|
|
481
|
|
|
/** |
482
|
|
|
* Retrieve the parentId property |
483
|
|
|
* |
484
|
|
|
* @return string|null |
485
|
|
|
*/ |
486
|
1 |
|
public function getParentId() |
487
|
|
|
{ |
488
|
1 |
|
return $this->parentId; |
489
|
|
|
} |
490
|
|
|
|
491
|
|
|
/** |
492
|
|
|
* Set the parentId property |
493
|
|
|
* |
494
|
|
|
* @param string $parentId |
495
|
|
|
* @return $this |
496
|
|
|
*/ |
497
|
1 |
|
public function setParentId($parentId) |
498
|
|
|
{ |
499
|
1 |
|
$this->parentId = $parentId; |
500
|
1 |
|
return $this; |
501
|
|
|
} |
502
|
|
|
} |
503
|
|
|
|