Completed
Pull Request — master (#155)
by Alexander
06:33
created

Query::getSort()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Yandex\Metrica\Stat\Models;
4
5
use Yandex\Common\Model;
6
7
/**
8
 * Class Query
9
 * @package Yandex\Metrica\Stat\Models
10
 */
11
class Query extends Model
12
{
13
    protected $id = null;
14
15
    /**
16
     * Identifiers of counters. Used instead of the parameter id.
17
     * @var int[]
18
     */
19
    protected $ids = null;
20
21
    protected $preset = null;
22
23
    protected $dimensions = null;
24
25
    protected $metrics = null;
26
27
    protected $sort = null;
28
29
    protected $limit = null;
30
31
    protected $offset = null;
32
33
    protected $date1 = null;
34
35
    protected $date2 = null;
36
37
    protected $filters = null;
38
39
    protected $group = null;
40
41
    protected $autoGroupType = null;
42
43
    protected $autoGroupSize = null;
44
45
    protected $mappingClasses = [];
46
47
    protected $propNameMap = [
48
        'auto_group_type' => 'autoGroupType',
49
        'auto_group_size' => 'autoGroupSize'
50
    ];
51 8
52
    /**
53 8
     * Retrieve the id property
54
     *
55
     * @return int|null
56
     */
57
    public function getId()
58
    {
59
        return $this->id;
60
    }
61
62 5
    /**
63
     * Set the id property
64 5
     *
65 5
     * @param int $id
66
     * @return $this
67
     */
68
    public function setId($id)
69
    {
70
        $this->id = $id;
71
        return $this;
72
    }
73 2
74
75 2
    /**
76
     * Retrieve the ids property
77
     *
78
     * @return int[]|null
79
     */
80
    public function getIds()
81
    {
82
        return $this->ids;
83
    }
84 1
85
    /**
86 1
     * Set the ids property
87 1
     *
88
     * @param int[] $ids
89
     * @return $this
90
     */
91
    public function setIds($ids)
92
    {
93
        $this->ids = $ids;
94
        return $this;
95 8
    }
96
97 8
    /**
98
     * Retrieve the preset property
99
     *
100
     * @return string|null
101
     */
102
    public function getPreset()
103
    {
104
        return $this->preset;
105
    }
106 5
107
    /**
108 5
     * Set the preset property
109 5
     *
110
     * @param string $preset
111
     * @return $this
112
     */
113
    public function setPreset($preset)
114
    {
115
        $this->preset = $preset;
116
        return $this;
117 8
    }
118
119 8
    /**
120
     * Retrieve the dimensions property
121
     *
122
     * @return array|null
123
     */
124
    public function getDimensions()
125
    {
126
        return $this->dimensions;
127
    }
128 5
129
    /**
130 5
     * Set the dimensions property
131 5
     *
132
     * @param array $dimensions
133
     * @return $this
134
     */
135
    public function setDimensions($dimensions)
136
    {
137
        $this->dimensions = $dimensions;
138
        return $this;
139 8
    }
140
141 8
    /**
142
     * Retrieve the metrics property
143
     *
144
     * @return array|null
145
     */
146
    public function getMetrics()
147
    {
148
        return $this->metrics;
149
    }
150 5
151
    /**
152 5
     * Set the metrics property
153 5
     *
154
     * @param array $metrics
155
     * @return $this
156
     */
157
    public function setMetrics($metrics)
158
    {
159
        $this->metrics = $metrics;
160
        return $this;
161 5
    }
162
163 5
    /**
164
     * Retrieve the sort property
165
     *
166
     * @return array|null
167
     */
168
    public function getSort()
169
    {
170
        return $this->sort;
171
    }
172 3
173
    /**
174 3
     * Set the sort property
175 3
     *
176
     * @param array $sort
177
     * @return $this
178
     */
179
    public function setSort($sort)
180
    {
181
        $this->sort = $sort;
182
        return $this;
183 5
    }
184
185 5
    /**
186
     * Retrieve the limit property
187
     *
188
     * @return int|null
189
     */
190
    public function getLimit()
191
    {
192
        return $this->limit;
193
    }
194 3
195
    /**
196 3
     * Set the limit property
197 3
     *
198
     * @param int $limit
199
     * @return $this
200
     */
201
    public function setLimit($limit)
202
    {
203
        $this->limit = $limit;
204
        return $this;
205 8
    }
206
207 8
    /**
208
     * Retrieve the offset property
209
     *
210
     * @return int|null
211
     */
212
    public function getOffset()
213
    {
214
        return $this->offset;
215
    }
216 5
217
    /**
218 5
     * Set the offset property
219 5
     *
220
     * @param int $offset
221
     * @return $this
222
     */
223
    public function setOffset($offset)
224
    {
225
        $this->offset = $offset;
226
        return $this;
227 8
    }
228
229 8
    /**
230
     * Retrieve the date1 property
231
     *
232
     * @return string|null
233
     */
234
    public function getDate1()
235
    {
236
        return $this->date1;
237
    }
238 5
239
    /**
240 5
     * Set the date1 property
241 5
     *
242
     * @param string $date1
243
     * @return $this
244
     */
245
    public function setDate1($date1)
246
    {
247
        $this->date1 = $date1;
248
        return $this;
249
    }
250
251
    /**
252
     * Retrieve the date2 property
253
     *
254
     * @return string|null
255
     */
256
    public function getDate2()
257
    {
258
        return $this->date2;
259
    }
260
261
    /**
262
     * Set the date2 property
263
     *
264
     * @param string $date2
265
     * @return $this
266
     */
267
    public function setDate2($date2)
268
    {
269
        $this->date2 = $date2;
270
        return $this;
271 1
    }
272
273 1
    /**
274
     * Retrieve the filters property
275
     *
276
     * @return string|null
277
     */
278
    public function getFilters()
279
    {
280
        return $this->filters;
281
    }
282 1
283
    /**
284 1
     * Set the filters property
285 1
     *
286
     * @param string $filters
287
     * @return $this
288
     */
289
    public function setFilters($filters)
290
    {
291
        $this->filters = $filters;
292
        return $this;
293 1
    }
294
295 1
    /**
296
     * Retrieve the group property
297
     *
298
     * @return string|null
299
     */
300
    public function getGroup()
301
    {
302
        return $this->group;
303
    }
304 1
305
    /**
306 1
     * Set the group property
307 1
     *
308
     * @param string $group
309
     * @return $this
310
     */
311
    public function setGroup($group)
312
    {
313
        $this->group = $group;
314
        return $this;
315 1
    }
316
317 1
    /**
318
     * Retrieve the autoGroupType property
319
     *
320
     * @return string|null
321
     */
322
    public function getAutoGroupType()
323
    {
324
        return $this->autoGroupType;
325
    }
326 1
327
    /**
328 1
     * Set the autoGroupType property
329 1
     *
330
     * @param string $autoGroupType
331
     * @return $this
332
     */
333
    public function setAutoGroupType($autoGroupType)
334
    {
335
        $this->autoGroupType = $autoGroupType;
336
        return $this;
337
    }
338
339
    /**
340
     * Retrieve the autoGroupSize property
341
     *
342
     * @return string|null
343
     */
344
    public function getAutoGroupSize()
345
    {
346
        return $this->autoGroupSize;
347
    }
348
349
    /**
350
     * Set the autoGroupSize property
351
     *
352
     * @param string $autoGroupSize
353
     * @return $this
354
     */
355
    public function setAutoGroupSize($autoGroupSize)
356
    {
357
        $this->autoGroupSize = $autoGroupSize;
358
        return $this;
359
    }
360
}
361