ExtendCounter::setWebvisor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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\Goals;
8
use Yandex\Metrica\Management\Models\Filters;
9
use Yandex\Metrica\Management\Models\Operations;
10
use Yandex\Metrica\Management\Models\Grants;
11
use Yandex\Metrica\Management\Models\Monitoring;
12
use Yandex\Common\Model;
13
14
class ExtendCounter extends Model
15
{
16
17
    protected $id = null;
18
19
    protected $ownerLogin = null;
20
21
    protected $codeStatus = null;
22
23
    protected $name = null;
24
25
    protected $site = null;
26
27
    protected $type = null;
28
29
    protected $permission = null;
30
31
    protected $webvisor = null;
32
33
    protected $codeOptions = null;
34
35
    protected $mirrors = null;
36
37
    protected $goals = null;
38
39
    protected $filters = null;
40
41
    protected $operations = null;
42
43
    protected $grants = null;
44
45
    protected $monitoring = null;
46
47
    protected $filterRobots = null;
48
49
    protected $timeZoneName = null;
50
51
    protected $visitThreshoId = null;
52
53
    protected $code = null;
54
55
    protected $accuracy = null;
56
57
    protected $callback = null;
58
59
    protected $includeUndefined = null;
60
61
    protected $sort = null;
62
63
    protected $lang = null;
64
65
    protected $mappingClasses = [
66
        'webvisor' => 'Yandex\Metrica\Management\Models\Webvisor',
67
        'codeOptions' => 'Yandex\Metrica\Management\Models\CodeOptions',
68
        'goals' => 'Yandex\Metrica\Management\Models\Goals',
69
        'filters' => 'Yandex\Metrica\Management\Models\Filters',
70
        'operations' => 'Yandex\Metrica\Management\Models\Operations',
71
        'grants' => 'Yandex\Metrica\Management\Models\Grants',
72
        'monitoring' => 'Yandex\Metrica\Management\Models\Monitoring'
73
    ];
74
75
    protected $propNameMap = [
76
        'owner_login' => 'ownerLogin',
77
        'code_status' => 'codeStatus',
78
        'code_options' => 'codeOptions',
79
        'filter_robots' => 'filterRobots',
80
        'time_zone_name' => 'timeZoneName',
81
        'visit_thresho_id' => 'visitThreshoId',
82
        'include_undefined' => 'includeUndefined'
83
    ];
84
85
    /**
86
     * Retrieve the id property
87
     *
88
     * @return int|null
89
     */
90
    public function getId()
91
    {
92
        return $this->id;
93
    }
94
95
    /**
96
     * Set the id property
97
     *
98
     * @param int $id
99
     * @return $this
100
     */
101
    public function setId($id)
102
    {
103
        $this->id = $id;
104
        return $this;
105
    }
106
107
    /**
108
     * Retrieve the ownerLogin property
109
     *
110
     * @return string|null
111
     */
112
    public function getOwnerLogin()
113
    {
114
        return $this->ownerLogin;
115
    }
116
117
    /**
118
     * Set the ownerLogin property
119
     *
120
     * @param string $ownerLogin
121
     * @return $this
122
     */
123
    public function setOwnerLogin($ownerLogin)
124
    {
125
        $this->ownerLogin = $ownerLogin;
126
        return $this;
127
    }
128
129
    /**
130
     * Retrieve the codeStatus property
131
     *
132
     * @return string|null
133
     */
134
    public function getCodeStatus()
135
    {
136
        return $this->codeStatus;
137
    }
138
139
    /**
140
     * Set the codeStatus property
141
     *
142
     * @param string $codeStatus
143
     * @return $this
144
     */
145
    public function setCodeStatus($codeStatus)
146
    {
147
        $this->codeStatus = $codeStatus;
148
        return $this;
149
    }
150
151
    /**
152
     * Retrieve the name property
153
     *
154
     * @return string|null
155
     */
156
    public function getName()
157
    {
158
        return $this->name;
159
    }
160
161
    /**
162
     * Set the name property
163
     *
164
     * @param string $name
165
     * @return $this
166
     */
167
    public function setName($name)
168
    {
169
        $this->name = $name;
170
        return $this;
171
    }
172
173
    /**
174
     * Retrieve the site property
175
     *
176
     * @return string|null
177
     */
178
    public function getSite()
179
    {
180
        return $this->site;
181
    }
182
183
    /**
184
     * Set the site property
185
     *
186
     * @param string $site
187
     * @return $this
188
     */
189
    public function setSite($site)
190
    {
191
        $this->site = $site;
192
        return $this;
193
    }
194
195
    /**
196
     * Retrieve the type property
197
     *
198
     * @return string|null
199
     */
200
    public function getType()
201
    {
202
        return $this->type;
203
    }
204
205
    /**
206
     * Set the type property
207
     *
208
     * @param string $type
209
     * @return $this
210
     */
211
    public function setType($type)
212
    {
213
        $this->type = $type;
214
        return $this;
215
    }
216
217
    /**
218
     * Retrieve the permission property
219
     *
220
     * @return string|null
221
     */
222
    public function getPermission()
223
    {
224
        return $this->permission;
225
    }
226
227
    /**
228
     * Set the permission property
229
     *
230
     * @param string $permission
231
     * @return $this
232
     */
233
    public function setPermission($permission)
234
    {
235
        $this->permission = $permission;
236
        return $this;
237
    }
238
239
    /**
240
     * Retrieve the webvisor property
241
     *
242
     * @return Webvisor|null
243
     */
244
    public function getWebvisor()
245
    {
246
        return $this->webvisor;
247
    }
248
249
    /**
250
     * Set the webvisor property
251
     *
252
     * @param Webvisor $webvisor
253
     * @return $this
254
     */
255
    public function setWebvisor($webvisor)
256
    {
257
        $this->webvisor = $webvisor;
258
        return $this;
259
    }
260
261
    /**
262
     * Retrieve the codeOptions property
263
     *
264
     * @return CodeOptions|null
265
     */
266
    public function getCodeOptions()
267
    {
268
        return $this->codeOptions;
269
    }
270
271
    /**
272
     * Set the codeOptions property
273
     *
274
     * @param CodeOptions $codeOptions
275
     * @return $this
276
     */
277
    public function setCodeOptions($codeOptions)
278
    {
279
        $this->codeOptions = $codeOptions;
280
        return $this;
281
    }
282
283
    /**
284
     * Retrieve the mirrors property
285
     *
286
     * @return array|null
287
     */
288
    public function getMirrors()
289
    {
290
        return $this->mirrors;
291
    }
292
293
    /**
294
     * Set the mirrors property
295
     *
296
     * @param array $mirrors
297
     * @return $this
298
     */
299
    public function setMirrors($mirrors)
300
    {
301
        $this->mirrors = $mirrors;
302
        return $this;
303
    }
304
305
    /**
306
     * Retrieve the goals property
307
     *
308
     * @return Goals|null
309
     */
310
    public function getGoals()
311
    {
312
        return $this->goals;
313
    }
314
315
    /**
316
     * Set the goals property
317
     *
318
     * @param Goals $goals
319
     * @return $this
320
     */
321
    public function setGoals($goals)
322
    {
323
        $this->goals = $goals;
324
        return $this;
325
    }
326
327
    /**
328
     * Retrieve the filters property
329
     *
330
     * @return Filters|null
331
     */
332
    public function getFilters()
333
    {
334
        return $this->filters;
335
    }
336
337
    /**
338
     * Set the filters property
339
     *
340
     * @param Filters $filters
341
     * @return $this
342
     */
343
    public function setFilters($filters)
344
    {
345
        $this->filters = $filters;
346
        return $this;
347
    }
348
349
    /**
350
     * Retrieve the operations property
351
     *
352
     * @return Operations|null
353
     */
354
    public function getOperations()
355
    {
356
        return $this->operations;
357
    }
358
359
    /**
360
     * Set the operations property
361
     *
362
     * @param Operations $operations
363
     * @return $this
364
     */
365
    public function setOperations($operations)
366
    {
367
        $this->operations = $operations;
368
        return $this;
369
    }
370
371
    /**
372
     * Retrieve the grants property
373
     *
374
     * @return Grants|null
375
     */
376
    public function getGrants()
377
    {
378
        return $this->grants;
379
    }
380
381
    /**
382
     * Set the grants property
383
     *
384
     * @param Grants $grants
385
     * @return $this
386
     */
387
    public function setGrants($grants)
388
    {
389
        $this->grants = $grants;
390
        return $this;
391
    }
392
393
    /**
394
     * Retrieve the monitoring property
395
     *
396
     * @return Monitoring|null
397
     */
398
    public function getMonitoring()
399
    {
400
        return $this->monitoring;
401
    }
402
403
    /**
404
     * Set the monitoring property
405
     *
406
     * @param Monitoring $monitoring
407
     * @return $this
408
     */
409
    public function setMonitoring($monitoring)
410
    {
411
        $this->monitoring = $monitoring;
412
        return $this;
413
    }
414
415
    /**
416
     * Retrieve the filterRobots property
417
     *
418
     * @return int|null
419
     */
420
    public function getFilterRobots()
421
    {
422
        return $this->filterRobots;
423
    }
424
425
    /**
426
     * Set the filterRobots property
427
     *
428
     * @param int $filterRobots
429
     * @return $this
430
     */
431
    public function setFilterRobots($filterRobots)
432
    {
433
        $this->filterRobots = $filterRobots;
434
        return $this;
435
    }
436
437
    /**
438
     * Retrieve the timeZoneName property
439
     *
440
     * @return string|null
441
     */
442
    public function getTimeZoneName()
443
    {
444
        return $this->timeZoneName;
445
    }
446
447
    /**
448
     * Set the timeZoneName property
449
     *
450
     * @param string $timeZoneName
451
     * @return $this
452
     */
453
    public function setTimeZoneName($timeZoneName)
454
    {
455
        $this->timeZoneName = $timeZoneName;
456
        return $this;
457
    }
458
459
    /**
460
     * Retrieve the visitThreshoId property
461
     *
462
     * @return int|null
463
     */
464
    public function getVisitThreshoId()
465
    {
466
        return $this->visitThreshoId;
467
    }
468
469
    /**
470
     * Set the visitThreshoId property
471
     *
472
     * @param int $visitThreshoId
473
     * @return $this
474
     */
475
    public function setVisitThreshoId($visitThreshoId)
476
    {
477
        $this->visitThreshoId = $visitThreshoId;
478
        return $this;
479
    }
480
481
    /**
482
     * Retrieve the code property
483
     *
484
     * @return string|null
485
     */
486
    public function getCode()
487
    {
488
        return $this->code;
489
    }
490
491
    /**
492
     * Set the code property
493
     *
494
     * @param string $code
495
     * @return $this
496
     */
497
    public function setCode($code)
498
    {
499
        $this->code = $code;
500
        return $this;
501
    }
502
503
    /**
504
     * Retrieve the accuracy property
505
     *
506
     * @return string|null
507
     */
508
    public function getAccuracy()
509
    {
510
        return $this->accuracy;
511
    }
512
513
    /**
514
     * Set the accuracy property
515
     *
516
     * @param string $accuracy
517
     * @return $this
518
     */
519
    public function setAccuracy($accuracy)
520
    {
521
        $this->accuracy = $accuracy;
522
        return $this;
523
    }
524
525
    /**
526
     * Retrieve the callback property
527
     *
528
     * @return string|null
529
     */
530
    public function getCallback()
531
    {
532
        return $this->callback;
533
    }
534
535
    /**
536
     * Set the callback property
537
     *
538
     * @param string $callback
539
     * @return $this
540
     */
541
    public function setCallback($callback)
542
    {
543
        $this->callback = $callback;
544
        return $this;
545
    }
546
547
    /**
548
     * Retrieve the includeUndefined property
549
     *
550
     * @return bool|null
551
     */
552
    public function getIncludeUndefined()
553
    {
554
        return $this->includeUndefined;
555
    }
556
557
    /**
558
     * Set the includeUndefined property
559
     *
560
     * @param bool $includeUndefined
561
     * @return $this
562
     */
563
    public function setIncludeUndefined($includeUndefined)
564
    {
565
        $this->includeUndefined = $includeUndefined;
566
        return $this;
567
    }
568
569
    /**
570
     * Retrieve the sort property
571
     *
572
     * @return string|null
573
     */
574
    public function getSort()
575
    {
576
        return $this->sort;
577
    }
578
579
    /**
580
     * Set the sort property
581
     *
582
     * @param string $sort
583
     * @return $this
584
     */
585
    public function setSort($sort)
586
    {
587
        $this->sort = $sort;
588
        return $this;
589
    }
590
591
    /**
592
     * Retrieve the lang property
593
     *
594
     * @return string|null
595
     */
596
    public function getLang()
597
    {
598
        return $this->lang;
599
    }
600
601
    /**
602
     * Set the lang property
603
     *
604
     * @param string $lang
605
     * @return $this
606
     */
607
    public function setLang($lang)
608
    {
609
        $this->lang = $lang;
610
        return $this;
611
    }
612
}
613