|
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\Common\Model; |
|
8
|
|
|
|
|
9
|
|
|
class CounterItem extends Model |
|
10
|
|
|
{ |
|
11
|
|
|
|
|
12
|
|
|
protected $id = null; |
|
13
|
|
|
|
|
14
|
|
|
protected $ownerLogin = null; |
|
15
|
|
|
|
|
16
|
|
|
protected $codeStatus = null; |
|
17
|
|
|
|
|
18
|
|
|
protected $name = null; |
|
19
|
|
|
|
|
20
|
|
|
protected $site = null; |
|
21
|
|
|
|
|
22
|
|
|
protected $type = null; |
|
23
|
|
|
|
|
24
|
|
|
protected $favorite = null; |
|
25
|
|
|
|
|
26
|
|
|
protected $permission = null; |
|
27
|
|
|
|
|
28
|
|
|
protected $webvisor = null; |
|
29
|
|
|
|
|
30
|
|
|
protected $codeOptions = null; |
|
31
|
|
|
|
|
32
|
|
|
protected $partnerId = null; |
|
33
|
|
|
|
|
34
|
|
|
protected $mirrors = null; |
|
35
|
|
|
|
|
36
|
|
|
protected $mappingClasses = [ |
|
37
|
|
|
'webvisor' => 'Yandex\Metrica\Management\Models\Webvisor', |
|
38
|
|
|
'codeOptions' => 'Yandex\Metrica\Management\Models\CodeOptions' |
|
39
|
|
|
]; |
|
40
|
|
|
|
|
41
|
|
|
protected $propNameMap = [ |
|
42
|
|
|
'ownerLogin' => 'owner_login', |
|
43
|
|
|
'codeStatus' => 'code_status', |
|
44
|
|
|
'codeOptions' => 'code_options', |
|
45
|
|
|
'partnerId' => 'partner_id', |
|
46
|
|
|
'mirrors' => 'mirrors' |
|
47
|
|
|
]; |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* Retrieve the id property |
|
51
|
2 |
|
* |
|
52
|
|
|
* @return int|null |
|
53
|
2 |
|
*/ |
|
54
|
|
|
public function getId() |
|
55
|
|
|
{ |
|
56
|
|
|
return $this->id; |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* Set the id property |
|
61
|
|
|
* |
|
62
|
2 |
|
* @param int $id |
|
63
|
|
|
* @return $this |
|
64
|
2 |
|
*/ |
|
65
|
2 |
|
public function setId($id) |
|
66
|
|
|
{ |
|
67
|
|
|
$this->id = $id; |
|
68
|
|
|
return $this; |
|
69
|
|
|
} |
|
70
|
|
|
|
|
71
|
|
|
/** |
|
72
|
|
|
* Retrieve the ownerLogin property |
|
73
|
2 |
|
* |
|
74
|
|
|
* @return string|null |
|
75
|
2 |
|
*/ |
|
76
|
|
|
public function getOwnerLogin() |
|
77
|
|
|
{ |
|
78
|
|
|
return $this->ownerLogin; |
|
79
|
|
|
} |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* Set the ownerLogin property |
|
83
|
|
|
* |
|
84
|
2 |
|
* @param string $ownerLogin |
|
85
|
|
|
* @return $this |
|
86
|
2 |
|
*/ |
|
87
|
2 |
|
public function setOwnerLogin($ownerLogin) |
|
88
|
|
|
{ |
|
89
|
|
|
$this->ownerLogin = $ownerLogin; |
|
90
|
|
|
return $this; |
|
91
|
|
|
} |
|
92
|
|
|
|
|
93
|
|
|
/** |
|
94
|
|
|
* Retrieve the codeStatus property |
|
95
|
2 |
|
* |
|
96
|
|
|
* @return string|null |
|
97
|
2 |
|
*/ |
|
98
|
|
|
public function getCodeStatus() |
|
99
|
|
|
{ |
|
100
|
|
|
return $this->codeStatus; |
|
101
|
|
|
} |
|
102
|
|
|
|
|
103
|
|
|
/** |
|
104
|
|
|
* Set the codeStatus property |
|
105
|
|
|
* |
|
106
|
2 |
|
* @param string $codeStatus |
|
107
|
|
|
* @return $this |
|
108
|
2 |
|
*/ |
|
109
|
2 |
|
public function setCodeStatus($codeStatus) |
|
110
|
|
|
{ |
|
111
|
|
|
$this->codeStatus = $codeStatus; |
|
112
|
|
|
return $this; |
|
113
|
|
|
} |
|
114
|
|
|
|
|
115
|
|
|
/** |
|
116
|
|
|
* Retrieve the name property |
|
117
|
2 |
|
* |
|
118
|
|
|
* @return string|null |
|
119
|
2 |
|
*/ |
|
120
|
|
|
public function getName() |
|
121
|
|
|
{ |
|
122
|
|
|
return $this->name; |
|
123
|
|
|
} |
|
124
|
|
|
|
|
125
|
|
|
/** |
|
126
|
|
|
* Set the name property |
|
127
|
|
|
* |
|
128
|
2 |
|
* @param string $name |
|
129
|
|
|
* @return $this |
|
130
|
2 |
|
*/ |
|
131
|
2 |
|
public function setName($name) |
|
132
|
|
|
{ |
|
133
|
|
|
$this->name = $name; |
|
134
|
|
|
return $this; |
|
135
|
|
|
} |
|
136
|
|
|
|
|
137
|
|
|
/** |
|
138
|
|
|
* Retrieve the site property |
|
139
|
2 |
|
* |
|
140
|
|
|
* @return string|null |
|
141
|
2 |
|
*/ |
|
142
|
|
|
public function getSite() |
|
143
|
|
|
{ |
|
144
|
|
|
return $this->site; |
|
145
|
|
|
} |
|
146
|
|
|
|
|
147
|
|
|
/** |
|
148
|
|
|
* Set the site property |
|
149
|
|
|
* |
|
150
|
2 |
|
* @param string $site |
|
151
|
|
|
* @return $this |
|
152
|
2 |
|
*/ |
|
153
|
2 |
|
public function setSite($site) |
|
154
|
|
|
{ |
|
155
|
|
|
$this->site = $site; |
|
156
|
|
|
return $this; |
|
157
|
|
|
} |
|
158
|
|
|
|
|
159
|
|
|
/** |
|
160
|
|
|
* Retrieve the type property |
|
161
|
2 |
|
* |
|
162
|
|
|
* @return string|null |
|
163
|
2 |
|
*/ |
|
164
|
|
|
public function getType() |
|
165
|
|
|
{ |
|
166
|
|
|
return $this->type; |
|
167
|
|
|
} |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* Set the type property |
|
171
|
|
|
* |
|
172
|
2 |
|
* @param string $type |
|
173
|
|
|
* @return $this |
|
174
|
2 |
|
*/ |
|
175
|
2 |
|
public function setType($type) |
|
176
|
|
|
{ |
|
177
|
|
|
$this->type = $type; |
|
178
|
|
|
return $this; |
|
179
|
|
|
} |
|
180
|
|
|
|
|
181
|
|
|
/** |
|
182
|
|
|
* Retrieve the favorite property |
|
183
|
2 |
|
* |
|
184
|
|
|
* @return int|null |
|
185
|
2 |
|
*/ |
|
186
|
|
|
public function getFavorite() |
|
187
|
|
|
{ |
|
188
|
|
|
return $this->favorite; |
|
189
|
|
|
} |
|
190
|
|
|
|
|
191
|
|
|
/** |
|
192
|
|
|
* Set the favorite property |
|
193
|
|
|
* |
|
194
|
2 |
|
* @param int $favorite |
|
195
|
|
|
* @return $this |
|
196
|
2 |
|
*/ |
|
197
|
2 |
|
public function setFavorite($favorite) |
|
198
|
|
|
{ |
|
199
|
|
|
$this->favorite = $favorite; |
|
200
|
|
|
return $this; |
|
201
|
|
|
} |
|
202
|
|
|
|
|
203
|
|
|
/** |
|
204
|
|
|
* Retrieve the permission property |
|
205
|
2 |
|
* |
|
206
|
|
|
* @return string|null |
|
207
|
2 |
|
*/ |
|
208
|
|
|
public function getPermission() |
|
209
|
|
|
{ |
|
210
|
|
|
return $this->permission; |
|
211
|
|
|
} |
|
212
|
|
|
|
|
213
|
|
|
/** |
|
214
|
|
|
* Set the permission property |
|
215
|
|
|
* |
|
216
|
2 |
|
* @param string $permission |
|
217
|
|
|
* @return $this |
|
218
|
2 |
|
*/ |
|
219
|
2 |
|
public function setPermission($permission) |
|
220
|
|
|
{ |
|
221
|
|
|
$this->permission = $permission; |
|
222
|
|
|
return $this; |
|
223
|
|
|
} |
|
224
|
|
|
|
|
225
|
|
|
/** |
|
226
|
|
|
* Retrieve the webvisor property |
|
227
|
2 |
|
* |
|
228
|
|
|
* @return Webvisor|null |
|
229
|
2 |
|
*/ |
|
230
|
|
|
public function getWebvisor() |
|
231
|
|
|
{ |
|
232
|
|
|
return $this->webvisor; |
|
233
|
|
|
} |
|
234
|
|
|
|
|
235
|
|
|
/** |
|
236
|
|
|
* Set the webvisor property |
|
237
|
|
|
* |
|
238
|
2 |
|
* @param Webvisor $webvisor |
|
239
|
|
|
* @return $this |
|
240
|
2 |
|
*/ |
|
241
|
2 |
|
public function setWebvisor($webvisor) |
|
242
|
|
|
{ |
|
243
|
|
|
$this->webvisor = $webvisor; |
|
244
|
|
|
return $this; |
|
245
|
|
|
} |
|
246
|
|
|
|
|
247
|
|
|
/** |
|
248
|
|
|
* Retrieve the codeOptions property |
|
249
|
2 |
|
* |
|
250
|
|
|
* @return CodeOptions|null |
|
251
|
2 |
|
*/ |
|
252
|
|
|
public function getCodeOptions() |
|
253
|
|
|
{ |
|
254
|
|
|
return $this->codeOptions; |
|
255
|
|
|
} |
|
256
|
|
|
|
|
257
|
|
|
/** |
|
258
|
|
|
* Set the codeOptions property |
|
259
|
|
|
* |
|
260
|
2 |
|
* @param CodeOptions $codeOptions |
|
261
|
|
|
* @return $this |
|
262
|
2 |
|
*/ |
|
263
|
2 |
|
public function setCodeOptions($codeOptions) |
|
264
|
|
|
{ |
|
265
|
|
|
$this->codeOptions = $codeOptions; |
|
266
|
|
|
return $this; |
|
267
|
|
|
} |
|
268
|
|
|
|
|
269
|
|
|
/** |
|
270
|
|
|
* Retrieve the partnerId property |
|
271
|
2 |
|
* |
|
272
|
|
|
* @return int|null |
|
273
|
2 |
|
*/ |
|
274
|
|
|
public function getPartnerId() |
|
275
|
|
|
{ |
|
276
|
|
|
return $this->partnerId; |
|
277
|
|
|
} |
|
278
|
|
|
|
|
279
|
|
|
/** |
|
280
|
|
|
* Set the partnerId property |
|
281
|
|
|
* |
|
282
|
2 |
|
* @param int $partnerId |
|
283
|
|
|
* @return $this |
|
284
|
2 |
|
*/ |
|
285
|
2 |
|
public function setPartnerId($partnerId) |
|
286
|
|
|
{ |
|
287
|
|
|
$this->partnerId = $partnerId; |
|
288
|
|
|
return $this; |
|
289
|
|
|
} |
|
290
|
|
|
|
|
291
|
|
|
/** |
|
292
|
|
|
* Retrieve the mirrors property |
|
293
|
|
|
* |
|
294
|
|
|
* @return array|null |
|
295
|
|
|
*/ |
|
296
|
|
|
public function getMirrors() |
|
297
|
|
|
{ |
|
298
|
|
|
return $this->mirrors; |
|
299
|
|
|
} |
|
300
|
|
|
|
|
301
|
|
|
/** |
|
302
|
|
|
* Set the mirrors property |
|
303
|
|
|
* |
|
304
|
|
|
* @param int $mirrors |
|
305
|
|
|
* @return $this |
|
306
|
|
|
*/ |
|
307
|
|
|
public function setMirrors($mirrors) |
|
308
|
|
|
{ |
|
309
|
|
|
$this->mirrors = $mirrors; |
|
310
|
|
|
return $this; |
|
311
|
|
|
} |
|
312
|
|
|
|
|
313
|
|
|
} |
|
314
|
|
|
|