Completed
Pull Request — master (#155)
by Alexander
05:35
created

Params::getMetrics()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Metrica\Analytics\Models;
4
5
use Yandex\Common\Model;
6
7
class Params extends Model
8
{
9
10
    protected $endDate = null;
11
12
    protected $ids = null;
13
14
    protected $metrics = null;
15
16
    protected $startDate = null;
17
18
    protected $callback = null;
19
20
    protected $dimensions = null;
21
22
    protected $filters = null;
23
24
    protected $maxResults = null;
25
26
    protected $samplingLevel = null;
27
28
    protected $sort = null;
29
30
    protected $startIndex = null;
31
32
    protected $mappingClasses = [];
33
34
    protected $propNameMap = [
35
        'end-date' => 'endDate',
36
        'start-date' => 'startDate',
37
        'max-results' => 'maxResults',
38
        'start-index' => 'startIndex'
39
    ];
40
41
    /**
42
     * Retrieve the endDate property
43
     *
44
     * @return string|null
45
     */
46 1
    public function getEndDate()
47
    {
48 1
        return $this->endDate;
49
    }
50
51
    /**
52
     * Set the endDate property
53
     *
54
     * @param string $endDate
55
     * @return $this
56
     */
57 1
    public function setEndDate($endDate)
58
    {
59 1
        $this->endDate = $endDate;
60 1
        return $this;
61
    }
62
63
    /**
64
     * Retrieve the ids property
65
     *
66
     * @return string|null
67
     */
68 1
    public function getIds()
69
    {
70 1
        return $this->ids;
71
    }
72
73
    /**
74
     * Set the ids property
75
     *
76
     * @param string $ids
77
     * @return $this
78
     */
79 1
    public function setIds($ids)
80
    {
81 1
        $this->ids = $ids;
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 startDate property
109
     *
110
     * @return string|null
111
     */
112 1
    public function getStartDate()
113
    {
114 1
        return $this->startDate;
115
    }
116
117
    /**
118
     * Set the startDate property
119
     *
120
     * @param string $startDate
121
     * @return $this
122
     */
123 1
    public function setStartDate($startDate)
124
    {
125 1
        $this->startDate = $startDate;
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 dimensions property
153
     *
154
     * @return string|null
155
     */
156 1
    public function getDimensions()
157
    {
158 1
        return $this->dimensions;
159
    }
160
161
    /**
162
     * Set the dimensions property
163
     *
164
     * @param string $dimensions
165
     * @return $this
166
     */
167 1
    public function setDimensions($dimensions)
168
    {
169 1
        $this->dimensions = $dimensions;
170 1
        return $this;
171
    }
172
173
    /**
174
     * Retrieve the filters property
175
     *
176
     * @return string|null
177
     */
178 1
    public function getFilters()
179
    {
180 1
        return $this->filters;
181
    }
182
183
    /**
184
     * Set the filters property
185
     *
186
     * @param string $filters
187
     * @return $this
188
     */
189 1
    public function setFilters($filters)
190
    {
191 1
        $this->filters = $filters;
192 1
        return $this;
193
    }
194
195
    /**
196
     * Retrieve the maxResults property
197
     *
198
     * @return string|null
199
     */
200 1
    public function getMaxResults()
201
    {
202 1
        return $this->maxResults;
203
    }
204
205
    /**
206
     * Set the maxResults property
207
     *
208
     * @param string $maxResults
209
     * @return $this
210
     */
211 1
    public function setMaxResults($maxResults)
212
    {
213 1
        $this->maxResults = $maxResults;
214 1
        return $this;
215
    }
216
217
    /**
218
     * Retrieve the samplingLevel property
219
     *
220
     * @return string|null
221
     */
222 1
    public function getSamplingLevel()
223
    {
224 1
        return $this->samplingLevel;
225
    }
226
227
    /**
228
     * Set the samplingLevel property
229
     *
230
     * @param string $samplingLevel
231
     * @return $this
232
     */
233 1
    public function setSamplingLevel($samplingLevel)
234
    {
235 1
        $this->samplingLevel = $samplingLevel;
236 1
        return $this;
237
    }
238
239
    /**
240
     * Retrieve the sort property
241
     *
242
     * @return string|null
243
     */
244 1
    public function getSort()
245
    {
246 1
        return $this->sort;
247
    }
248
249
    /**
250
     * Set the sort property
251
     *
252
     * @param string $sort
253
     * @return $this
254
     */
255 1
    public function setSort($sort)
256
    {
257 1
        $this->sort = $sort;
258 1
        return $this;
259
    }
260
261
    /**
262
     * Retrieve the startIndex property
263
     *
264
     * @return int|null
265
     */
266 1
    public function getStartIndex()
267
    {
268 1
        return $this->startIndex;
269
    }
270
271
    /**
272
     * Set the startIndex property
273
     *
274
     * @param int $startIndex
275
     * @return $this
276
     */
277 1
    public function setStartIndex($startIndex)
278
    {
279 1
        $this->startIndex = $startIndex;
280 1
        return $this;
281
    }
282
}
283