Completed
Pull Request — master (#159)
by
unknown
09:00
created

Ga::getSampleSize()   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\Metrica\Analytics\Models\Query;
6
use Yandex\Metrica\Analytics\Models\ColumnHeaders;
7
use Yandex\Common\Model;
8
9
class Ga extends Model
10
{
11
12
    protected $kind = null;
13
14
    protected $id = null;
15
16
    protected $selfLink = null;
17
18
    protected $containsSampledData = null;
19
20
    protected $sampleSize = null;
21
22
    protected $sampleSpace = null;
23
24
    protected $query = null;
25
26
    protected $itemsPerPage = null;
27
28
    protected $totalResults = null;
29
30
    protected $columnHeaders = null;
31
32
    protected $totalsForAllResults = null;
33
34
    protected $rows = null;
35
36
    protected $mappingClasses = [
37
        'query' => 'Yandex\Metrica\Analytics\Models\Query',
38
        'columnHeaders' => 'Yandex\Metrica\Analytics\Models\ColumnHeaders'
39
    ];
40
41
    protected $propNameMap = [];
42
43
    /**
44
     * Retrieve the kind property
45
     *
46
     * @return string|null
47
     */
48 2
    public function getKind()
49
    {
50 2
        return $this->kind;
51
    }
52
53
    /**
54
     * Set the kind property
55
     *
56
     * @param string $kind
57
     * @return $this
58
     */
59 1
    public function setKind($kind)
60
    {
61 1
        $this->kind = $kind;
62 1
        return $this;
63
    }
64
65
    /**
66
     * Retrieve the id property
67
     *
68
     * @return string|null
69
     */
70 2
    public function getId()
71
    {
72 2
        return $this->id;
73
    }
74
75
    /**
76
     * Set the id property
77
     *
78
     * @param string $id
79
     * @return $this
80
     */
81 1
    public function setId($id)
82
    {
83 1
        $this->id = $id;
84 1
        return $this;
85
    }
86
87
    /**
88
     * Retrieve the selfLink property
89
     *
90
     * @return string|null
91
     */
92 2
    public function getSelfLink()
93
    {
94 2
        return $this->selfLink;
95
    }
96
97
    /**
98
     * Set the selfLink property
99
     *
100
     * @param string $selfLink
101
     * @return $this
102
     */
103 1
    public function setSelfLink($selfLink)
104
    {
105 1
        $this->selfLink = $selfLink;
106 1
        return $this;
107
    }
108
109
    /**
110
     * Retrieve the containsSampledData property
111
     *
112
     * @return bool|null
113
     */
114 2
    public function getContainsSampledData()
115
    {
116 2
        return $this->containsSampledData;
117
    }
118
119
    /**
120
     * Set the containsSampledData property
121
     *
122
     * @param bool $containsSampledData
123
     * @return $this
124
     */
125 1
    public function setContainsSampledData($containsSampledData)
126
    {
127 1
        $this->containsSampledData = $containsSampledData;
128 1
        return $this;
129
    }
130
131
    /**
132
     * Retrieve the sampleSize property
133
     *
134
     * @return string|null
135
     */
136 2
    public function getSampleSize()
137
    {
138 2
        return $this->sampleSize;
139
    }
140
141
    /**
142
     * Set the sampleSize property
143
     *
144
     * @param string $sampleSize
145
     * @return $this
146
     */
147 1
    public function setSampleSize($sampleSize)
148
    {
149 1
        $this->sampleSize = $sampleSize;
150 1
        return $this;
151
    }
152
153
    /**
154
     * Retrieve the sampleSpace property
155
     *
156
     * @return string|null
157
     */
158 2
    public function getSampleSpace()
159
    {
160 2
        return $this->sampleSpace;
161
    }
162
163
    /**
164
     * Set the sampleSpace property
165
     *
166
     * @param string $sampleSpace
167
     * @return $this
168
     */
169 1
    public function setSampleSpace($sampleSpace)
170
    {
171 1
        $this->sampleSpace = $sampleSpace;
172 1
        return $this;
173
    }
174
175
    /**
176
     * Retrieve the query property
177
     *
178
     * @return Query|null
179
     */
180 2
    public function getQuery()
181
    {
182 2
        return $this->query;
183
    }
184
185
    /**
186
     * Set the query property
187
     *
188
     * @param Query $query
189
     * @return $this
190
     */
191 1
    public function setQuery($query)
192
    {
193 1
        $this->query = $query;
194 1
        return $this;
195
    }
196
197
    /**
198
     * Retrieve the itemsPerPage property
199
     *
200
     * @return int|null
201
     */
202 2
    public function getItemsPerPage()
203
    {
204 2
        return $this->itemsPerPage;
205
    }
206
207
    /**
208
     * Set the itemsPerPage property
209
     *
210
     * @param int $itemsPerPage
211
     * @return $this
212
     */
213 1
    public function setItemsPerPage($itemsPerPage)
214
    {
215 1
        $this->itemsPerPage = $itemsPerPage;
216 1
        return $this;
217
    }
218
219
    /**
220
     * Retrieve the totalResults property
221
     *
222
     * @return int|null
223
     */
224 2
    public function getTotalResults()
225
    {
226 2
        return $this->totalResults;
227
    }
228
229
    /**
230
     * Set the totalResults property
231
     *
232
     * @param int $totalResults
233
     * @return $this
234
     */
235 1
    public function setTotalResults($totalResults)
236
    {
237 1
        $this->totalResults = $totalResults;
238 1
        return $this;
239
    }
240
241
    /**
242
     * Retrieve the columnHeaders property
243
     *
244
     * @return ColumnHeaders|null
245
     */
246 2
    public function getColumnHeaders()
247
    {
248 2
        return $this->columnHeaders;
249
    }
250
251
    /**
252
     * Set the columnHeaders property
253
     *
254
     * @param ColumnHeaders $columnHeaders
255
     * @return $this
256
     */
257 1
    public function setColumnHeaders($columnHeaders)
258
    {
259 1
        $this->columnHeaders = $columnHeaders;
260 1
        return $this;
261
    }
262
263
    /**
264
     * Retrieve the totalsForAllResults property
265
     *
266
     * @return array|null
267
     */
268 2
    public function getTotalsForAllResults()
269
    {
270 2
        return $this->totalsForAllResults;
271
    }
272
273
    /**
274
     * Set the totalsForAllResults property
275
     *
276
     * @param array $totalsForAllResults
277
     * @return $this
278
     */
279 1
    public function setTotalsForAllResults($totalsForAllResults)
280
    {
281 1
        $this->totalsForAllResults = $totalsForAllResults;
282 1
        return $this;
283
    }
284
285
    /**
286
     * Retrieve the rows property
287
     *
288
     * @return array|null
289
     */
290 2
    public function getRows()
291
    {
292 2
        return $this->rows;
293
    }
294
295
    /**
296
     * Set the rows property
297
     *
298
     * @param array $rows
299
     * @return $this
300
     */
301 1
    public function setRows($rows)
302
    {
303 1
        $this->rows = $rows;
304 1
        return $this;
305
    }
306
}
307