CodeOptions::getVisor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Metrica\Management\Models;
4
5
use Yandex\Metrica\Management\Models\Informer;
6
use Yandex\Common\Model;
7
8
class CodeOptions extends Model
9
{
10
11
    protected $async = null;
12
13
    protected $informer = null;
14
15
    protected $visor = null;
16
17
    protected $ut = null;
18
19
    protected $trackHash = null;
20
21
    protected $xmlSite = null;
22
23
    protected $inOneLine = null;
24
25
    protected $mappingClasses = [
26
        'informer' => 'Yandex\Metrica\Management\Models\Informer'
27
    ];
28
29
    protected $propNameMap = [
30
        'track_hash' => 'trackHash',
31
        'xml_site' => 'xmlSite',
32
        'in_one_line' => 'inOneLine'
33
    ];
34
35
    /**
36
     * Retrieve the async property
37
     *
38
     * @return boolean|null
39
     */
40 4
    public function getAsync()
41
    {
42 4
        return $this->async;
43
    }
44
45
    /**
46
     * Set the async property
47
     *
48
     * @param boolean $async
49
     * @return $this
50
     */
51 3
    public function setAsync($async)
52
    {
53 3
        $this->async = $async;
54 3
        return $this;
55
    }
56
57
    /**
58
     * Retrieve the informer property
59
     *
60
     * @return Informer|null
61
     */
62 4
    public function getInformer()
63
    {
64 4
        return $this->informer;
65
    }
66
67
    /**
68
     * Set the informer property
69
     *
70
     * @param Informer $informer
71
     * @return $this
72
     */
73 3
    public function setInformer($informer)
74
    {
75 3
        $this->informer = $informer;
76 3
        return $this;
77
    }
78
79
    /**
80
     * Retrieve the visor property
81
     *
82
     * @return boolean|null
83
     */
84 4
    public function getVisor()
85
    {
86 4
        return $this->visor;
87
    }
88
89
    /**
90
     * Set the visor property
91
     *
92
     * @param boolean $visor
93
     * @return $this
94
     */
95 3
    public function setVisor($visor)
96
    {
97 3
        $this->visor = $visor;
98 3
        return $this;
99
    }
100
101
    /**
102
     * Retrieve the ut property
103
     *
104
     * @return boolean|null
105
     */
106 4
    public function getUt()
107
    {
108 4
        return $this->ut;
109
    }
110
111
    /**
112
     * Set the ut property
113
     *
114
     * @param boolean $ut
115
     * @return $this
116
     */
117 3
    public function setUt($ut)
118
    {
119 3
        $this->ut = $ut;
120 3
        return $this;
121
    }
122
123
    /**
124
     * Retrieve the trackHash property
125
     *
126
     * @return boolean|null
127
     */
128 4
    public function getTrackHash()
129
    {
130 4
        return $this->trackHash;
131
    }
132
133
    /**
134
     * Set the trackHash property
135
     *
136
     * @param boolean $trackHash
137
     * @return $this
138
     */
139 3
    public function setTrackHash($trackHash)
140
    {
141 3
        $this->trackHash = $trackHash;
142 3
        return $this;
143
    }
144
145
    /**
146
     * Retrieve the xmlSite property
147
     *
148
     * @return boolean|null
149
     */
150 4
    public function getXmlSite()
151
    {
152 4
        return $this->xmlSite;
153
    }
154
155
    /**
156
     * Set the xmlSite property
157
     *
158
     * @param boolean $xmlSite
159
     * @return $this
160
     */
161 3
    public function setXmlSite($xmlSite)
162
    {
163 3
        $this->xmlSite = $xmlSite;
164 3
        return $this;
165
    }
166
167
    /**
168
     * Retrieve the inOneLine property
169
     *
170
     * @return boolean|null
171
     */
172 4
    public function getInOneLine()
173
    {
174 4
        return $this->inOneLine;
175
    }
176
177
    /**
178
     * Set the inOneLine property
179
     *
180
     * @param boolean $inOneLine
181
     * @return $this
182
     */
183 3
    public function setInOneLine($inOneLine)
184
    {
185 3
        $this->inOneLine = $inOneLine;
186 3
        return $this;
187
    }
188
}
189