ComparisonParams::setDimensions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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