1 | <?php |
||
8 | class ByTimeParams extends Model |
||
9 | { |
||
10 | |||
11 | protected $id = null; |
||
12 | |||
13 | protected $preset = null; |
||
14 | |||
15 | /** |
||
16 | * @var null|StringCollection |
||
17 | */ |
||
18 | protected $dimensions = null; |
||
19 | |||
20 | /** |
||
21 | * @var null|StringCollection |
||
22 | */ |
||
23 | protected $metrics = null; |
||
24 | |||
25 | /** |
||
26 | * @var null|StringCollection |
||
27 | */ |
||
28 | protected $sort = null; |
||
29 | |||
30 | protected $limit = null; |
||
31 | |||
32 | protected $offset = null; |
||
33 | |||
34 | protected $date1 = null; |
||
35 | |||
36 | protected $date2 = null; |
||
37 | |||
38 | protected $filters = null; |
||
39 | |||
40 | protected $accuracy = null; |
||
41 | |||
42 | protected $callback = null; |
||
43 | |||
44 | protected $includeUndefined = null; |
||
45 | |||
46 | protected $lang = null; |
||
47 | |||
48 | protected $pretty = null; |
||
49 | |||
50 | protected $group = null; |
||
51 | |||
52 | protected $rowIds = null; |
||
53 | |||
54 | protected $topKeys = null; |
||
55 | |||
56 | protected $mappingClasses = []; |
||
57 | |||
58 | protected $propNameMap = [ |
||
59 | 'include_undefined' => 'includeUndefined', |
||
60 | 'row_ids' => 'rowIds', |
||
61 | 'top_keys' => 'topKeys' |
||
62 | ]; |
||
63 | |||
64 | /** |
||
65 | * Retrieve the id property |
||
66 | * |
||
67 | * @return int|null |
||
68 | */ |
||
69 | public function getId() |
||
73 | |||
74 | /** |
||
75 | * Set the id property |
||
76 | * |
||
77 | * @param int $id |
||
78 | * @return $this |
||
79 | */ |
||
80 | 1 | public function setId($id) |
|
81 | { |
||
82 | 1 | $this->id = $id; |
|
83 | 1 | return $this; |
|
84 | } |
||
85 | |||
86 | /** |
||
87 | * Retrieve the preset property |
||
88 | * |
||
89 | * @return string|null |
||
90 | */ |
||
91 | public function getPreset() |
||
95 | |||
96 | /** |
||
97 | * Set the preset property |
||
98 | * |
||
99 | * @param string $preset |
||
100 | * @return $this |
||
101 | */ |
||
102 | public function setPreset($preset) |
||
103 | { |
||
104 | $this->preset = $preset; |
||
105 | return $this; |
||
106 | } |
||
107 | |||
108 | /** |
||
109 | * Retrieve the dimensions property |
||
110 | * |
||
111 | * @return string[]|null |
||
112 | */ |
||
113 | public function getDimensions() |
||
117 | |||
118 | /** |
||
119 | * Set the dimensions property |
||
120 | * |
||
121 | * @param string[]|string|null $dimensions |
||
122 | * @return $this |
||
123 | */ |
||
124 | 2 | public function setDimensions($dimensions) |
|
125 | { |
||
126 | 2 | $this->dimensions = StringCollection::init($dimensions); |
|
127 | 2 | return $this; |
|
128 | } |
||
129 | |||
130 | /** |
||
131 | * Retrieve the metrics property |
||
132 | * |
||
133 | * @return string[]|null |
||
134 | */ |
||
135 | public function getMetrics() |
||
139 | |||
140 | /** |
||
141 | * Set the metrics property |
||
142 | * |
||
143 | * @param string[]|string|null $metrics |
||
144 | * @return $this |
||
145 | */ |
||
146 | 1 | public function setMetrics($metrics) |
|
147 | { |
||
148 | 1 | $this->metrics = StringCollection::init($metrics); |
|
149 | 1 | return $this; |
|
150 | } |
||
151 | |||
152 | /** |
||
153 | * Retrieve the sort property |
||
154 | * |
||
155 | * @return string[]|null |
||
156 | */ |
||
157 | public function getSort() |
||
161 | |||
162 | /** |
||
163 | * Set the sort property |
||
164 | * |
||
165 | * @param string[]|string|null $sort |
||
166 | * @return $this |
||
167 | */ |
||
168 | 1 | public function setSort($sort) |
|
169 | { |
||
170 | 1 | $this->sort = StringCollection::init($sort); |
|
171 | 1 | return $this; |
|
172 | } |
||
173 | |||
174 | /** |
||
175 | * Retrieve the limit property |
||
176 | * |
||
177 | * @return int|null |
||
178 | */ |
||
179 | public function getLimit() |
||
183 | |||
184 | /** |
||
185 | * Set the limit property |
||
186 | * |
||
187 | * @param int $limit |
||
188 | * @return $this |
||
189 | */ |
||
190 | 2 | public function setLimit($limit) |
|
191 | { |
||
192 | 2 | $this->limit = $limit; |
|
193 | 2 | return $this; |
|
194 | } |
||
195 | |||
196 | /** |
||
197 | * Retrieve the offset property |
||
198 | * |
||
199 | * @return int|null |
||
200 | */ |
||
201 | public function getOffset() |
||
205 | |||
206 | /** |
||
207 | * Set the offset property |
||
208 | * |
||
209 | * @param int $offset |
||
210 | * @return $this |
||
211 | */ |
||
212 | public function setOffset($offset) |
||
213 | { |
||
214 | $this->offset = $offset; |
||
215 | return $this; |
||
216 | } |
||
217 | |||
218 | /** |
||
219 | * Retrieve the date1 property |
||
220 | * |
||
221 | * @return string|null |
||
222 | */ |
||
223 | public function getDate1() |
||
227 | |||
228 | /** |
||
229 | * Set the date1 property |
||
230 | * |
||
231 | * @param string $date1 |
||
232 | * @return $this |
||
233 | */ |
||
234 | public function setDate1($date1) |
||
235 | { |
||
236 | $this->date1 = $date1; |
||
237 | return $this; |
||
238 | } |
||
239 | |||
240 | /** |
||
241 | * Retrieve the date2 property |
||
242 | * |
||
243 | * @return string|null |
||
244 | */ |
||
245 | public function getDate2() |
||
249 | |||
250 | /** |
||
251 | * Set the date2 property |
||
252 | * |
||
253 | * @param string $date2 |
||
254 | * @return $this |
||
255 | */ |
||
256 | public function setDate2($date2) |
||
257 | { |
||
258 | $this->date2 = $date2; |
||
259 | return $this; |
||
260 | } |
||
261 | |||
262 | /** |
||
263 | * Retrieve the filters property |
||
264 | * |
||
265 | * @return string|null |
||
266 | */ |
||
267 | public function getFilters() |
||
271 | |||
272 | /** |
||
273 | * Set the filters property |
||
274 | * |
||
275 | * @param string $filters |
||
276 | * @return $this |
||
277 | */ |
||
278 | 1 | public function setFilters($filters) |
|
279 | { |
||
280 | 1 | $this->filters = $filters; |
|
281 | 1 | return $this; |
|
282 | } |
||
283 | |||
284 | /** |
||
285 | * Retrieve the accuracy property |
||
286 | * |
||
287 | * @return string|null |
||
288 | */ |
||
289 | public function getAccuracy() |
||
293 | |||
294 | /** |
||
295 | * Set the accuracy property |
||
296 | * |
||
297 | * @param string $accuracy |
||
298 | * @return $this |
||
299 | */ |
||
300 | public function setAccuracy($accuracy) |
||
301 | { |
||
302 | $this->accuracy = $accuracy; |
||
303 | return $this; |
||
304 | } |
||
305 | |||
306 | /** |
||
307 | * Retrieve the callback property |
||
308 | * |
||
309 | * @return string|null |
||
310 | */ |
||
311 | public function getCallback() |
||
315 | |||
316 | /** |
||
317 | * Set the callback property |
||
318 | * |
||
319 | * @param string $callback |
||
320 | * @return $this |
||
321 | */ |
||
322 | public function setCallback($callback) |
||
323 | { |
||
324 | $this->callback = $callback; |
||
325 | return $this; |
||
326 | } |
||
327 | |||
328 | /** |
||
329 | * Retrieve the includeUndefined property |
||
330 | * |
||
331 | * @return bool|null |
||
332 | */ |
||
333 | public function getIncludeUndefined() |
||
337 | |||
338 | /** |
||
339 | * Set the includeUndefined property |
||
340 | * |
||
341 | * @param bool $includeUndefined |
||
342 | * @return $this |
||
343 | */ |
||
344 | public function setIncludeUndefined($includeUndefined) |
||
345 | { |
||
346 | $this->includeUndefined = $includeUndefined; |
||
347 | return $this; |
||
348 | } |
||
349 | |||
350 | /** |
||
351 | * Retrieve the lang property |
||
352 | * |
||
353 | * @return string|null |
||
354 | */ |
||
355 | public function getLang() |
||
359 | |||
360 | /** |
||
361 | * Set the lang property |
||
362 | * |
||
363 | * @param string $lang |
||
364 | * @return $this |
||
365 | */ |
||
366 | public function setLang($lang) |
||
367 | { |
||
368 | $this->lang = $lang; |
||
369 | return $this; |
||
370 | } |
||
371 | |||
372 | /** |
||
373 | * Retrieve the pretty property |
||
374 | * |
||
375 | * @return bool|null |
||
376 | */ |
||
377 | public function getPretty() |
||
381 | |||
382 | /** |
||
383 | * Set the pretty property |
||
384 | * |
||
385 | * @param bool $pretty |
||
386 | * @return $this |
||
387 | */ |
||
388 | public function setPretty($pretty) |
||
389 | { |
||
390 | $this->pretty = $pretty; |
||
391 | return $this; |
||
392 | } |
||
393 | |||
394 | /** |
||
395 | * Retrieve the group property |
||
396 | * |
||
397 | * @return string|null |
||
398 | */ |
||
399 | public function getGroup() |
||
403 | |||
404 | /** |
||
405 | * Set the group property |
||
406 | * |
||
407 | * @param string $group |
||
408 | * @return $this |
||
409 | */ |
||
410 | public function setGroup($group) |
||
411 | { |
||
412 | $this->group = $group; |
||
413 | return $this; |
||
414 | } |
||
415 | |||
416 | /** |
||
417 | * Retrieve the rowIds property |
||
418 | * |
||
419 | * @return string|null |
||
420 | */ |
||
421 | public function getRowIds() |
||
425 | |||
426 | /** |
||
427 | * Set the rowIds property |
||
428 | * |
||
429 | * @param string $rowIds |
||
430 | * @return $this |
||
431 | */ |
||
432 | public function setRowIds($rowIds) |
||
433 | { |
||
434 | $this->rowIds = $rowIds; |
||
435 | return $this; |
||
436 | } |
||
437 | |||
438 | /** |
||
439 | * Retrieve the topKeys property |
||
440 | * |
||
441 | * @return int|null |
||
442 | */ |
||
443 | public function getTopKeys() |
||
447 | |||
448 | /** |
||
449 | * Set the topKeys property |
||
450 | * |
||
451 | * @param int $topKeys |
||
452 | * @return $this |
||
453 | */ |
||
454 | public function setTopKeys($topKeys) |
||
455 | { |
||
456 | $this->topKeys = $topKeys; |
||
457 | return $this; |
||
458 | } |
||
459 | } |
||
460 |