|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Yandex\Metrica\Management\Models; |
|
4
|
|
|
|
|
5
|
|
|
use Yandex\Metrica\Management\Models\Webvisor; |
|
6
|
|
|
use Yandex\Metrica\Management\Models\CodeOptions; |
|
7
|
|
|
use Yandex\Metrica\Management\Models\Monitoring; |
|
8
|
|
|
use Yandex\Common\Model; |
|
9
|
|
|
|
|
10
|
|
|
class Counter extends Model |
|
11
|
|
|
{ |
|
12
|
|
|
|
|
13
|
|
|
protected $id = null; |
|
14
|
|
|
|
|
15
|
|
|
protected $ownerLogin = null; |
|
16
|
|
|
|
|
17
|
|
|
protected $codeStatus = null; |
|
18
|
|
|
|
|
19
|
|
|
protected $name = null; |
|
20
|
|
|
|
|
21
|
|
|
protected $site = null; |
|
22
|
|
|
|
|
23
|
|
|
protected $type = null; |
|
24
|
|
|
|
|
25
|
|
|
protected $favorite = null; |
|
26
|
|
|
|
|
27
|
|
|
protected $permission = null; |
|
28
|
|
|
|
|
29
|
|
|
protected $webvisor = null; |
|
30
|
|
|
|
|
31
|
|
|
protected $codeOptions = null; |
|
32
|
|
|
|
|
33
|
|
|
protected $partnerId = null; |
|
34
|
|
|
|
|
35
|
|
|
protected $code = null; |
|
36
|
|
|
|
|
37
|
|
|
protected $monitoring = null; |
|
38
|
|
|
|
|
39
|
|
|
protected $filterRobots = null; |
|
40
|
|
|
|
|
41
|
|
|
protected $timeZoneName = null; |
|
42
|
|
|
|
|
43
|
|
|
protected $visitThreshold = null; |
|
44
|
|
|
|
|
45
|
|
|
protected $maxGoals = null; |
|
46
|
|
|
|
|
47
|
|
|
protected $maxDetailedGoals = null; |
|
48
|
|
|
|
|
49
|
|
|
protected $maxRetargetingGoals = null; |
|
50
|
|
|
|
|
51
|
|
|
protected $mappingClasses = [ |
|
52
|
|
|
'webvisor' => 'Yandex\Metrica\Management\Models\Webvisor', |
|
53
|
|
|
'codeOptions' => 'Yandex\Metrica\Management\Models\CodeOptions', |
|
54
|
|
|
'monitoring' => 'Yandex\Metrica\Management\Models\Monitoring' |
|
55
|
|
|
]; |
|
56
|
|
|
|
|
57
|
|
|
protected $propNameMap = [ |
|
58
|
|
|
'owner_login' => 'ownerLogin', |
|
59
|
|
|
'code_status' => 'codeStatus', |
|
60
|
|
|
'code_options' => 'codeOptions', |
|
61
|
|
|
'partner_id' => 'partnerId', |
|
62
|
|
|
'filter_robots' => 'filterRobots', |
|
63
|
|
|
'time_zone_name' => 'timeZoneName', |
|
64
|
|
|
'visit_threshold' => 'visitThreshold', |
|
65
|
|
|
'max_goals' => 'maxGoals', |
|
66
|
|
|
'max_detailed_goals' => 'maxDetailedGoals', |
|
67
|
|
|
'max_retargeting_goals' => 'maxRetargetingGoals' |
|
68
|
|
|
]; |
|
69
|
|
|
|
|
70
|
|
|
/** |
|
71
|
|
|
* Retrieve the id property |
|
72
|
|
|
* |
|
73
|
|
|
* @return int|null |
|
74
|
|
|
*/ |
|
75
|
3 |
|
public function getId() |
|
76
|
|
|
{ |
|
77
|
3 |
|
return $this->id; |
|
78
|
|
|
} |
|
79
|
|
|
|
|
80
|
|
|
/** |
|
81
|
|
|
* Set the id property |
|
82
|
|
|
* |
|
83
|
|
|
* @param int $id |
|
84
|
|
|
* @return $this |
|
85
|
|
|
*/ |
|
86
|
1 |
|
public function setId($id) |
|
87
|
|
|
{ |
|
88
|
1 |
|
$this->id = $id; |
|
89
|
1 |
|
return $this; |
|
90
|
|
|
} |
|
91
|
|
|
|
|
92
|
|
|
/** |
|
93
|
|
|
* Retrieve the ownerLogin property |
|
94
|
|
|
* |
|
95
|
|
|
* @return string|null |
|
96
|
|
|
*/ |
|
97
|
3 |
|
public function getOwnerLogin() |
|
98
|
|
|
{ |
|
99
|
3 |
|
return $this->ownerLogin; |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* Set the ownerLogin property |
|
104
|
|
|
* |
|
105
|
|
|
* @param string $ownerLogin |
|
106
|
|
|
* @return $this |
|
107
|
|
|
*/ |
|
108
|
1 |
|
public function setOwnerLogin($ownerLogin) |
|
109
|
|
|
{ |
|
110
|
1 |
|
$this->ownerLogin = $ownerLogin; |
|
111
|
1 |
|
return $this; |
|
112
|
|
|
} |
|
113
|
|
|
|
|
114
|
|
|
/** |
|
115
|
|
|
* Retrieve the codeStatus property |
|
116
|
|
|
* |
|
117
|
|
|
* @return string|null |
|
118
|
|
|
*/ |
|
119
|
2 |
|
public function getCodeStatus() |
|
120
|
|
|
{ |
|
121
|
2 |
|
return $this->codeStatus; |
|
122
|
|
|
} |
|
123
|
|
|
|
|
124
|
|
|
/** |
|
125
|
|
|
* Set the codeStatus property |
|
126
|
|
|
* |
|
127
|
|
|
* @param string $codeStatus |
|
128
|
|
|
* @return $this |
|
129
|
|
|
*/ |
|
130
|
|
|
public function setCodeStatus($codeStatus) |
|
131
|
|
|
{ |
|
132
|
|
|
$this->codeStatus = $codeStatus; |
|
133
|
|
|
return $this; |
|
134
|
|
|
} |
|
135
|
|
|
|
|
136
|
|
|
/** |
|
137
|
|
|
* Retrieve the name property |
|
138
|
|
|
* |
|
139
|
|
|
* @return string|null |
|
140
|
|
|
*/ |
|
141
|
3 |
|
public function getName() |
|
142
|
|
|
{ |
|
143
|
3 |
|
return $this->name; |
|
144
|
|
|
} |
|
145
|
|
|
|
|
146
|
|
|
/** |
|
147
|
|
|
* Set the name property |
|
148
|
|
|
* |
|
149
|
|
|
* @param string $name |
|
150
|
|
|
* @return $this |
|
151
|
|
|
*/ |
|
152
|
1 |
|
public function setName($name) |
|
153
|
|
|
{ |
|
154
|
1 |
|
$this->name = $name; |
|
155
|
1 |
|
return $this; |
|
156
|
|
|
} |
|
157
|
|
|
|
|
158
|
|
|
/** |
|
159
|
|
|
* Retrieve the site property |
|
160
|
|
|
* |
|
161
|
|
|
* @return string|null |
|
162
|
|
|
*/ |
|
163
|
3 |
|
public function getSite() |
|
164
|
|
|
{ |
|
165
|
3 |
|
return $this->site; |
|
166
|
|
|
} |
|
167
|
|
|
|
|
168
|
|
|
/** |
|
169
|
|
|
* Set the site property |
|
170
|
|
|
* |
|
171
|
|
|
* @param string $site |
|
172
|
|
|
* @return $this |
|
173
|
|
|
*/ |
|
174
|
1 |
|
public function setSite($site) |
|
175
|
|
|
{ |
|
176
|
1 |
|
$this->site = $site; |
|
177
|
1 |
|
return $this; |
|
178
|
|
|
} |
|
179
|
|
|
|
|
180
|
|
|
/** |
|
181
|
|
|
* Retrieve the type property |
|
182
|
|
|
* |
|
183
|
|
|
* @return string|null |
|
184
|
|
|
*/ |
|
185
|
3 |
|
public function getType() |
|
186
|
|
|
{ |
|
187
|
3 |
|
return $this->type; |
|
188
|
|
|
} |
|
189
|
|
|
|
|
190
|
|
|
/** |
|
191
|
|
|
* Set the type property |
|
192
|
|
|
* |
|
193
|
|
|
* @param string $type |
|
194
|
|
|
* @return $this |
|
195
|
|
|
*/ |
|
196
|
1 |
|
public function setType($type) |
|
197
|
|
|
{ |
|
198
|
1 |
|
$this->type = $type; |
|
199
|
1 |
|
return $this; |
|
200
|
|
|
} |
|
201
|
|
|
|
|
202
|
|
|
/** |
|
203
|
|
|
* Retrieve the favorite property |
|
204
|
|
|
* |
|
205
|
|
|
* @return int|null |
|
206
|
|
|
*/ |
|
207
|
3 |
|
public function getFavorite() |
|
208
|
|
|
{ |
|
209
|
3 |
|
return $this->favorite; |
|
210
|
|
|
} |
|
211
|
|
|
|
|
212
|
|
|
/** |
|
213
|
|
|
* Set the favorite property |
|
214
|
|
|
* |
|
215
|
|
|
* @param int $favorite |
|
216
|
|
|
* @return $this |
|
217
|
|
|
*/ |
|
218
|
1 |
|
public function setFavorite($favorite) |
|
219
|
|
|
{ |
|
220
|
1 |
|
$this->favorite = $favorite; |
|
221
|
1 |
|
return $this; |
|
222
|
|
|
} |
|
223
|
|
|
|
|
224
|
|
|
/** |
|
225
|
|
|
* Retrieve the permission property |
|
226
|
|
|
* |
|
227
|
|
|
* @return string|null |
|
228
|
|
|
*/ |
|
229
|
3 |
|
public function getPermission() |
|
230
|
|
|
{ |
|
231
|
3 |
|
return $this->permission; |
|
232
|
|
|
} |
|
233
|
|
|
|
|
234
|
|
|
/** |
|
235
|
|
|
* Set the permission property |
|
236
|
|
|
* |
|
237
|
|
|
* @param string $permission |
|
238
|
|
|
* @return $this |
|
239
|
|
|
*/ |
|
240
|
1 |
|
public function setPermission($permission) |
|
241
|
|
|
{ |
|
242
|
1 |
|
$this->permission = $permission; |
|
243
|
1 |
|
return $this; |
|
244
|
|
|
} |
|
245
|
|
|
|
|
246
|
|
|
/** |
|
247
|
|
|
* Retrieve the webvisor property |
|
248
|
|
|
* |
|
249
|
|
|
* @return Webvisor|null |
|
250
|
|
|
*/ |
|
251
|
2 |
|
public function getWebvisor() |
|
252
|
|
|
{ |
|
253
|
2 |
|
return $this->webvisor; |
|
254
|
|
|
} |
|
255
|
|
|
|
|
256
|
|
|
/** |
|
257
|
|
|
* Set the webvisor property |
|
258
|
|
|
* |
|
259
|
|
|
* @param Webvisor $webvisor |
|
260
|
|
|
* @return $this |
|
261
|
|
|
*/ |
|
262
|
1 |
|
public function setWebvisor($webvisor) |
|
263
|
|
|
{ |
|
264
|
1 |
|
$this->webvisor = $webvisor; |
|
265
|
1 |
|
return $this; |
|
266
|
|
|
} |
|
267
|
|
|
|
|
268
|
|
|
/** |
|
269
|
|
|
* Retrieve the codeOptions property |
|
270
|
|
|
* |
|
271
|
|
|
* @return CodeOptions|null |
|
272
|
|
|
*/ |
|
273
|
2 |
|
public function getCodeOptions() |
|
274
|
|
|
{ |
|
275
|
2 |
|
return $this->codeOptions; |
|
276
|
|
|
} |
|
277
|
|
|
|
|
278
|
|
|
/** |
|
279
|
|
|
* Set the codeOptions property |
|
280
|
|
|
* |
|
281
|
|
|
* @param CodeOptions $codeOptions |
|
282
|
|
|
* @return $this |
|
283
|
|
|
*/ |
|
284
|
1 |
|
public function setCodeOptions($codeOptions) |
|
285
|
|
|
{ |
|
286
|
1 |
|
$this->codeOptions = $codeOptions; |
|
287
|
1 |
|
return $this; |
|
288
|
|
|
} |
|
289
|
|
|
|
|
290
|
|
|
/** |
|
291
|
|
|
* Retrieve the partnerId property |
|
292
|
|
|
* |
|
293
|
|
|
* @return int|null |
|
294
|
|
|
*/ |
|
295
|
2 |
|
public function getPartnerId() |
|
296
|
|
|
{ |
|
297
|
2 |
|
return $this->partnerId; |
|
298
|
|
|
} |
|
299
|
|
|
|
|
300
|
|
|
/** |
|
301
|
|
|
* Set the partnerId property |
|
302
|
|
|
* |
|
303
|
|
|
* @param int $partnerId |
|
304
|
|
|
* @return $this |
|
305
|
|
|
*/ |
|
306
|
1 |
|
public function setPartnerId($partnerId) |
|
307
|
|
|
{ |
|
308
|
1 |
|
$this->partnerId = $partnerId; |
|
309
|
1 |
|
return $this; |
|
310
|
|
|
} |
|
311
|
|
|
|
|
312
|
|
|
/** |
|
313
|
|
|
* Retrieve the code property |
|
314
|
|
|
* |
|
315
|
|
|
* @return string|null |
|
316
|
|
|
*/ |
|
317
|
1 |
|
public function getCode() |
|
318
|
|
|
{ |
|
319
|
1 |
|
return $this->code; |
|
320
|
|
|
} |
|
321
|
|
|
|
|
322
|
|
|
/** |
|
323
|
|
|
* Set the code property |
|
324
|
|
|
* |
|
325
|
|
|
* @param string $code |
|
326
|
|
|
* @return $this |
|
327
|
|
|
*/ |
|
328
|
|
|
public function setCode($code) |
|
329
|
|
|
{ |
|
330
|
|
|
$this->code = $code; |
|
331
|
|
|
return $this; |
|
332
|
|
|
} |
|
333
|
|
|
|
|
334
|
|
|
/** |
|
335
|
|
|
* Retrieve the monitoring property |
|
336
|
|
|
* |
|
337
|
|
|
* @return Monitoring|null |
|
338
|
|
|
*/ |
|
339
|
2 |
|
public function getMonitoring() |
|
340
|
|
|
{ |
|
341
|
2 |
|
return $this->monitoring; |
|
342
|
|
|
} |
|
343
|
|
|
|
|
344
|
|
|
/** |
|
345
|
|
|
* Set the monitoring property |
|
346
|
|
|
* |
|
347
|
|
|
* @param Monitoring $monitoring |
|
348
|
|
|
* @return $this |
|
349
|
|
|
*/ |
|
350
|
1 |
|
public function setMonitoring($monitoring) |
|
351
|
|
|
{ |
|
352
|
1 |
|
$this->monitoring = $monitoring; |
|
353
|
1 |
|
return $this; |
|
354
|
|
|
} |
|
355
|
|
|
|
|
356
|
|
|
/** |
|
357
|
|
|
* Retrieve the filterRobots property |
|
358
|
|
|
* |
|
359
|
|
|
* @return int|null |
|
360
|
|
|
*/ |
|
361
|
2 |
|
public function getFilterRobots() |
|
362
|
|
|
{ |
|
363
|
2 |
|
return $this->filterRobots; |
|
364
|
|
|
} |
|
365
|
|
|
|
|
366
|
|
|
/** |
|
367
|
|
|
* Set the filterRobots property |
|
368
|
|
|
* |
|
369
|
|
|
* @param int $filterRobots |
|
370
|
|
|
* @return $this |
|
371
|
|
|
*/ |
|
372
|
1 |
|
public function setFilterRobots($filterRobots) |
|
373
|
|
|
{ |
|
374
|
1 |
|
$this->filterRobots = $filterRobots; |
|
375
|
1 |
|
return $this; |
|
376
|
|
|
} |
|
377
|
|
|
|
|
378
|
|
|
/** |
|
379
|
|
|
* Retrieve the timeZoneName property |
|
380
|
|
|
* |
|
381
|
|
|
* @return string|null |
|
382
|
|
|
*/ |
|
383
|
2 |
|
public function getTimeZoneName() |
|
384
|
|
|
{ |
|
385
|
2 |
|
return $this->timeZoneName; |
|
386
|
|
|
} |
|
387
|
|
|
|
|
388
|
|
|
/** |
|
389
|
|
|
* Set the timeZoneName property |
|
390
|
|
|
* |
|
391
|
|
|
* @param string $timeZoneName |
|
392
|
|
|
* @return $this |
|
393
|
|
|
*/ |
|
394
|
1 |
|
public function setTimeZoneName($timeZoneName) |
|
395
|
|
|
{ |
|
396
|
1 |
|
$this->timeZoneName = $timeZoneName; |
|
397
|
1 |
|
return $this; |
|
398
|
|
|
} |
|
399
|
|
|
|
|
400
|
|
|
/** |
|
401
|
|
|
* Retrieve the visitThreshold property |
|
402
|
|
|
* |
|
403
|
|
|
* @return int|null |
|
404
|
|
|
*/ |
|
405
|
2 |
|
public function getVisitThreshold() |
|
406
|
|
|
{ |
|
407
|
2 |
|
return $this->visitThreshold; |
|
408
|
|
|
} |
|
409
|
|
|
|
|
410
|
|
|
/** |
|
411
|
|
|
* Set the visitThreshold property |
|
412
|
|
|
* |
|
413
|
|
|
* @param int $visitThreshold |
|
414
|
|
|
* @return $this |
|
415
|
|
|
*/ |
|
416
|
1 |
|
public function setVisitThreshold($visitThreshold) |
|
417
|
|
|
{ |
|
418
|
1 |
|
$this->visitThreshold = $visitThreshold; |
|
419
|
1 |
|
return $this; |
|
420
|
|
|
} |
|
421
|
|
|
|
|
422
|
|
|
/** |
|
423
|
|
|
* Retrieve the maxGoals property |
|
424
|
|
|
* |
|
425
|
|
|
* @return int|null |
|
426
|
|
|
*/ |
|
427
|
2 |
|
public function getMaxGoals() |
|
428
|
|
|
{ |
|
429
|
2 |
|
return $this->maxGoals; |
|
430
|
|
|
} |
|
431
|
|
|
|
|
432
|
|
|
/** |
|
433
|
|
|
* Set the maxGoals property |
|
434
|
|
|
* |
|
435
|
|
|
* @param int $maxGoals |
|
436
|
|
|
* @return $this |
|
437
|
|
|
*/ |
|
438
|
1 |
|
public function setMaxGoals($maxGoals) |
|
439
|
|
|
{ |
|
440
|
1 |
|
$this->maxGoals = $maxGoals; |
|
441
|
1 |
|
return $this; |
|
442
|
|
|
} |
|
443
|
|
|
|
|
444
|
|
|
/** |
|
445
|
|
|
* Retrieve the maxDetailedGoals property |
|
446
|
|
|
* |
|
447
|
|
|
* @return int|null |
|
448
|
|
|
*/ |
|
449
|
2 |
|
public function getMaxDetailedGoals() |
|
450
|
|
|
{ |
|
451
|
2 |
|
return $this->maxDetailedGoals; |
|
452
|
|
|
} |
|
453
|
|
|
|
|
454
|
|
|
/** |
|
455
|
|
|
* Set the maxDetailedGoals property |
|
456
|
|
|
* |
|
457
|
|
|
* @param int $maxDetailedGoals |
|
458
|
|
|
* @return $this |
|
459
|
|
|
*/ |
|
460
|
1 |
|
public function setMaxDetailedGoals($maxDetailedGoals) |
|
461
|
|
|
{ |
|
462
|
1 |
|
$this->maxDetailedGoals = $maxDetailedGoals; |
|
463
|
1 |
|
return $this; |
|
464
|
|
|
} |
|
465
|
|
|
|
|
466
|
|
|
/** |
|
467
|
|
|
* Retrieve the maxRetargetingGoals property |
|
468
|
|
|
* |
|
469
|
|
|
* @return int|null |
|
470
|
|
|
*/ |
|
471
|
2 |
|
public function getMaxRetargetingGoals() |
|
472
|
|
|
{ |
|
473
|
2 |
|
return $this->maxRetargetingGoals; |
|
474
|
|
|
} |
|
475
|
|
|
|
|
476
|
|
|
/** |
|
477
|
|
|
* Set the maxRetargetingGoals property |
|
478
|
|
|
* |
|
479
|
|
|
* @param int $maxRetargetingGoals |
|
480
|
|
|
* @return $this |
|
481
|
|
|
*/ |
|
482
|
1 |
|
public function setMaxRetargetingGoals($maxRetargetingGoals) |
|
483
|
|
|
{ |
|
484
|
1 |
|
$this->maxRetargetingGoals = $maxRetargetingGoals; |
|
485
|
1 |
|
return $this; |
|
486
|
|
|
} |
|
487
|
|
|
} |
|
488
|
|
|
|