1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Yandex\Metrica\Stat\Models; |
4
|
|
|
|
5
|
|
|
use Yandex\Common\Model; |
6
|
|
|
|
7
|
|
|
class ComparisonQuery extends Model |
8
|
|
|
{ |
9
|
|
|
|
10
|
|
|
protected $id = null; |
11
|
|
|
|
12
|
|
|
protected $preset = null; |
13
|
|
|
|
14
|
|
|
protected $dimensions = null; |
15
|
|
|
|
16
|
|
|
protected $metrics = null; |
17
|
|
|
|
18
|
|
|
protected $sort = null; |
19
|
|
|
|
20
|
|
|
protected $limit = null; |
21
|
|
|
|
22
|
|
|
protected $offset = null; |
23
|
|
|
|
24
|
|
|
protected $date1A = null; |
25
|
|
|
|
26
|
|
|
protected $date2A = null; |
27
|
|
|
|
28
|
|
|
protected $filtersA = null; |
29
|
|
|
|
30
|
|
|
protected $date1B = null; |
31
|
|
|
|
32
|
|
|
protected $date2B = null; |
33
|
|
|
|
34
|
|
|
protected $filtersB = null; |
35
|
|
|
|
36
|
|
|
protected $mappingClasses = []; |
37
|
|
|
|
38
|
|
|
protected $propNameMap = [ |
39
|
|
|
'date1_a' => 'date1A', |
40
|
|
|
'date2_a' => 'date2A', |
41
|
|
|
'filters_a' => 'filtersA', |
42
|
|
|
'date1_b' =>'date1B', |
43
|
|
|
'date2_b' =>'date2B', |
44
|
|
|
'filters_b' =>'filtersB' |
45
|
|
|
]; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* Retrieve the id property |
49
|
|
|
* |
50
|
|
|
* @return int|null |
51
|
|
|
*/ |
52
|
4 |
|
public function getId() |
53
|
|
|
{ |
54
|
4 |
|
return $this->id; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* Set the id property |
59
|
|
|
* |
60
|
|
|
* @param int $id |
61
|
|
|
* @return $this |
62
|
|
|
*/ |
63
|
2 |
|
public function setId($id) |
64
|
|
|
{ |
65
|
2 |
|
$this->id = $id; |
66
|
2 |
|
return $this; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* Retrieve the preset property |
71
|
|
|
* |
72
|
|
|
* @return string|null |
73
|
|
|
*/ |
74
|
2 |
|
public function getPreset() |
75
|
|
|
{ |
76
|
2 |
|
return $this->preset; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* Set the preset property |
81
|
|
|
* |
82
|
|
|
* @param string $preset |
83
|
|
|
* @return $this |
84
|
|
|
*/ |
85
|
1 |
|
public function setPreset($preset) |
86
|
|
|
{ |
87
|
1 |
|
$this->preset = $preset; |
88
|
1 |
|
return $this; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* Retrieve the dimensions property |
93
|
|
|
* |
94
|
|
|
* @return array|null |
95
|
|
|
*/ |
96
|
4 |
|
public function getDimensions() |
97
|
|
|
{ |
98
|
4 |
|
return $this->dimensions; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* Set the dimensions property |
103
|
|
|
* |
104
|
|
|
* @param array $dimensions |
105
|
|
|
* @return $this |
106
|
|
|
*/ |
107
|
2 |
|
public function setDimensions($dimensions) |
108
|
|
|
{ |
109
|
2 |
|
$this->dimensions = $dimensions; |
110
|
2 |
|
return $this; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* Retrieve the metrics property |
115
|
|
|
* |
116
|
|
|
* @return array|null |
117
|
|
|
*/ |
118
|
4 |
|
public function getMetrics() |
119
|
|
|
{ |
120
|
4 |
|
return $this->metrics; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* Set the metrics property |
125
|
|
|
* |
126
|
|
|
* @param array $metrics |
127
|
|
|
* @return $this |
128
|
|
|
*/ |
129
|
2 |
|
public function setMetrics($metrics) |
130
|
|
|
{ |
131
|
2 |
|
$this->metrics = $metrics; |
132
|
2 |
|
return $this; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* Retrieve the sort property |
137
|
|
|
* |
138
|
|
|
* @return array|null |
139
|
|
|
*/ |
140
|
4 |
|
public function getSort() |
141
|
|
|
{ |
142
|
4 |
|
return $this->sort; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* Set the sort property |
147
|
|
|
* |
148
|
|
|
* @param array $sort |
149
|
|
|
* @return $this |
150
|
|
|
*/ |
151
|
2 |
|
public function setSort($sort) |
152
|
|
|
{ |
153
|
2 |
|
$this->sort = $sort; |
154
|
2 |
|
return $this; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* Retrieve the limit property |
159
|
|
|
* |
160
|
|
|
* @return int|null |
161
|
|
|
*/ |
162
|
4 |
|
public function getLimit() |
163
|
|
|
{ |
164
|
4 |
|
return $this->limit; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* Set the limit property |
169
|
|
|
* |
170
|
|
|
* @param int $limit |
171
|
|
|
* @return $this |
172
|
|
|
*/ |
173
|
2 |
|
public function setLimit($limit) |
174
|
|
|
{ |
175
|
2 |
|
$this->limit = $limit; |
176
|
2 |
|
return $this; |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
/** |
180
|
|
|
* Retrieve the offset property |
181
|
|
|
* |
182
|
|
|
* @return int|null |
183
|
|
|
*/ |
184
|
4 |
|
public function getOffset() |
185
|
|
|
{ |
186
|
4 |
|
return $this->offset; |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
/** |
190
|
|
|
* Set the offset property |
191
|
|
|
* |
192
|
|
|
* @param int $offset |
193
|
|
|
* @return $this |
194
|
|
|
*/ |
195
|
2 |
|
public function setOffset($offset) |
196
|
|
|
{ |
197
|
2 |
|
$this->offset = $offset; |
198
|
2 |
|
return $this; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* Retrieve the date1A property |
203
|
|
|
* |
204
|
|
|
* @return string|null |
205
|
|
|
*/ |
206
|
4 |
|
public function getDate1A() |
207
|
|
|
{ |
208
|
4 |
|
return $this->date1A; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* Set the date1A property |
213
|
|
|
* |
214
|
|
|
* @param string $date1A |
215
|
|
|
* @return $this |
216
|
|
|
*/ |
217
|
2 |
|
public function setDate1A($date1A) |
218
|
|
|
{ |
219
|
2 |
|
$this->date1A = $date1A; |
220
|
2 |
|
return $this; |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* Retrieve the date2A property |
225
|
|
|
* |
226
|
|
|
* @return string|null |
227
|
|
|
*/ |
228
|
4 |
|
public function getDate2A() |
229
|
|
|
{ |
230
|
4 |
|
return $this->date2A; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* Set the date2A property |
235
|
|
|
* |
236
|
|
|
* @param string $date2A |
237
|
|
|
* @return $this |
238
|
|
|
*/ |
239
|
2 |
|
public function setDate2A($date2A) |
240
|
|
|
{ |
241
|
2 |
|
$this->date2A = $date2A; |
242
|
2 |
|
return $this; |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* Retrieve the filtersA property |
247
|
|
|
* |
248
|
|
|
* @return string|null |
249
|
|
|
*/ |
250
|
1 |
|
public function getFiltersA() |
251
|
|
|
{ |
252
|
1 |
|
return $this->filtersA; |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
/** |
256
|
|
|
* Set the filtersA property |
257
|
|
|
* |
258
|
|
|
* @param string $filtersA |
259
|
|
|
* @return $this |
260
|
|
|
*/ |
261
|
1 |
|
public function setFiltersA($filtersA) |
262
|
|
|
{ |
263
|
1 |
|
$this->filtersA = $filtersA; |
264
|
1 |
|
return $this; |
265
|
|
|
} |
266
|
|
|
|
267
|
|
|
/** |
268
|
|
|
* Retrieve the date1B property |
269
|
|
|
* |
270
|
|
|
* @return string|null |
271
|
|
|
*/ |
272
|
4 |
|
public function getDate1B() |
273
|
|
|
{ |
274
|
4 |
|
return $this->date1B; |
275
|
|
|
} |
276
|
|
|
|
277
|
|
|
/** |
278
|
|
|
* Set the date1B property |
279
|
|
|
* |
280
|
|
|
* @param string $date1B |
281
|
|
|
* @return $this |
282
|
|
|
*/ |
283
|
2 |
|
public function setDate1B($date1B) |
284
|
|
|
{ |
285
|
2 |
|
$this->date1B = $date1B; |
286
|
2 |
|
return $this; |
287
|
|
|
} |
288
|
|
|
|
289
|
|
|
/** |
290
|
|
|
* Retrieve the date2B property |
291
|
|
|
* |
292
|
|
|
* @return string|null |
293
|
|
|
*/ |
294
|
4 |
|
public function getDate2B() |
295
|
|
|
{ |
296
|
4 |
|
return $this->date2B; |
297
|
|
|
} |
298
|
|
|
|
299
|
|
|
/** |
300
|
|
|
* Set the date2B property |
301
|
|
|
* |
302
|
|
|
* @param string $date2B |
303
|
|
|
* @return $this |
304
|
|
|
*/ |
305
|
2 |
|
public function setDate2B($date2B) |
306
|
|
|
{ |
307
|
2 |
|
$this->date2B = $date2B; |
308
|
2 |
|
return $this; |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
/** |
312
|
|
|
* Retrieve the filtersB property |
313
|
|
|
* |
314
|
|
|
* @return string|null |
315
|
|
|
*/ |
316
|
1 |
|
public function getFiltersB() |
317
|
|
|
{ |
318
|
1 |
|
return $this->filtersB; |
319
|
|
|
} |
320
|
|
|
|
321
|
|
|
/** |
322
|
|
|
* Set the filtersB property |
323
|
|
|
* |
324
|
|
|
* @param string $filtersB |
325
|
|
|
* @return $this |
326
|
|
|
*/ |
327
|
1 |
|
public function setFiltersB($filtersB) |
328
|
|
|
{ |
329
|
1 |
|
$this->filtersB = $filtersB; |
330
|
1 |
|
return $this; |
331
|
|
|
} |
332
|
|
|
} |
333
|
|
|
|