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
|
|
|
* |
52
|
|
|
* @return int|null |
53
|
|
|
*/ |
54
|
2 |
|
public function getId() |
55
|
|
|
{ |
56
|
2 |
|
return $this->id; |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* Set the id property |
61
|
|
|
* |
62
|
|
|
* @param int $id |
63
|
|
|
* @return $this |
64
|
|
|
*/ |
65
|
2 |
|
public function setId($id) |
66
|
|
|
{ |
67
|
2 |
|
$this->id = $id; |
68
|
2 |
|
return $this; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* Retrieve the ownerLogin property |
73
|
|
|
* |
74
|
|
|
* @return string|null |
75
|
|
|
*/ |
76
|
2 |
|
public function getOwnerLogin() |
77
|
|
|
{ |
78
|
2 |
|
return $this->ownerLogin; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* Set the ownerLogin property |
83
|
|
|
* |
84
|
|
|
* @param string $ownerLogin |
85
|
|
|
* @return $this |
86
|
|
|
*/ |
87
|
2 |
|
public function setOwnerLogin($ownerLogin) |
88
|
|
|
{ |
89
|
2 |
|
$this->ownerLogin = $ownerLogin; |
90
|
2 |
|
return $this; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* Retrieve the codeStatus property |
95
|
|
|
* |
96
|
|
|
* @return string|null |
97
|
|
|
*/ |
98
|
2 |
|
public function getCodeStatus() |
99
|
|
|
{ |
100
|
2 |
|
return $this->codeStatus; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* Set the codeStatus property |
105
|
|
|
* |
106
|
|
|
* @param string $codeStatus |
107
|
|
|
* @return $this |
108
|
|
|
*/ |
109
|
2 |
|
public function setCodeStatus($codeStatus) |
110
|
|
|
{ |
111
|
2 |
|
$this->codeStatus = $codeStatus; |
112
|
2 |
|
return $this; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* Retrieve the name property |
117
|
|
|
* |
118
|
|
|
* @return string|null |
119
|
|
|
*/ |
120
|
2 |
|
public function getName() |
121
|
|
|
{ |
122
|
2 |
|
return $this->name; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* Set the name property |
127
|
|
|
* |
128
|
|
|
* @param string $name |
129
|
|
|
* @return $this |
130
|
|
|
*/ |
131
|
2 |
|
public function setName($name) |
132
|
|
|
{ |
133
|
2 |
|
$this->name = $name; |
134
|
2 |
|
return $this; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* Retrieve the site property |
139
|
|
|
* |
140
|
|
|
* @return string|null |
141
|
|
|
*/ |
142
|
2 |
|
public function getSite() |
143
|
|
|
{ |
144
|
2 |
|
return $this->site; |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
/** |
148
|
|
|
* Set the site property |
149
|
|
|
* |
150
|
|
|
* @param string $site |
151
|
|
|
* @return $this |
152
|
|
|
*/ |
153
|
2 |
|
public function setSite($site) |
154
|
|
|
{ |
155
|
2 |
|
$this->site = $site; |
156
|
2 |
|
return $this; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* Retrieve the type property |
161
|
|
|
* |
162
|
|
|
* @return string|null |
163
|
|
|
*/ |
164
|
2 |
|
public function getType() |
165
|
|
|
{ |
166
|
2 |
|
return $this->type; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* Set the type property |
171
|
|
|
* |
172
|
|
|
* @param string $type |
173
|
|
|
* @return $this |
174
|
|
|
*/ |
175
|
2 |
|
public function setType($type) |
176
|
|
|
{ |
177
|
2 |
|
$this->type = $type; |
178
|
2 |
|
return $this; |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
/** |
182
|
|
|
* Retrieve the favorite property |
183
|
|
|
* |
184
|
|
|
* @return int|null |
185
|
|
|
*/ |
186
|
2 |
|
public function getFavorite() |
187
|
|
|
{ |
188
|
2 |
|
return $this->favorite; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* Set the favorite property |
193
|
|
|
* |
194
|
|
|
* @param int $favorite |
195
|
|
|
* @return $this |
196
|
|
|
*/ |
197
|
2 |
|
public function setFavorite($favorite) |
198
|
|
|
{ |
199
|
2 |
|
$this->favorite = $favorite; |
200
|
2 |
|
return $this; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* Retrieve the permission property |
205
|
|
|
* |
206
|
|
|
* @return string|null |
207
|
|
|
*/ |
208
|
2 |
|
public function getPermission() |
209
|
|
|
{ |
210
|
2 |
|
return $this->permission; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* Set the permission property |
215
|
|
|
* |
216
|
|
|
* @param string $permission |
217
|
|
|
* @return $this |
218
|
|
|
*/ |
219
|
2 |
|
public function setPermission($permission) |
220
|
|
|
{ |
221
|
2 |
|
$this->permission = $permission; |
222
|
2 |
|
return $this; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* Retrieve the webvisor property |
227
|
|
|
* |
228
|
|
|
* @return Webvisor|null |
229
|
|
|
*/ |
230
|
2 |
|
public function getWebvisor() |
231
|
|
|
{ |
232
|
2 |
|
return $this->webvisor; |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* Set the webvisor property |
237
|
|
|
* |
238
|
|
|
* @param Webvisor $webvisor |
239
|
|
|
* @return $this |
240
|
|
|
*/ |
241
|
2 |
|
public function setWebvisor($webvisor) |
242
|
|
|
{ |
243
|
2 |
|
$this->webvisor = $webvisor; |
244
|
2 |
|
return $this; |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
/** |
248
|
|
|
* Retrieve the codeOptions property |
249
|
|
|
* |
250
|
|
|
* @return CodeOptions|null |
251
|
|
|
*/ |
252
|
2 |
|
public function getCodeOptions() |
253
|
|
|
{ |
254
|
2 |
|
return $this->codeOptions; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* Set the codeOptions property |
259
|
|
|
* |
260
|
|
|
* @param CodeOptions $codeOptions |
261
|
|
|
* @return $this |
262
|
|
|
*/ |
263
|
2 |
|
public function setCodeOptions($codeOptions) |
264
|
|
|
{ |
265
|
2 |
|
$this->codeOptions = $codeOptions; |
266
|
2 |
|
return $this; |
267
|
|
|
} |
268
|
|
|
|
269
|
|
|
/** |
270
|
|
|
* Retrieve the partnerId property |
271
|
|
|
* |
272
|
|
|
* @return int|null |
273
|
|
|
*/ |
274
|
2 |
|
public function getPartnerId() |
275
|
|
|
{ |
276
|
2 |
|
return $this->partnerId; |
277
|
|
|
} |
278
|
|
|
|
279
|
|
|
/** |
280
|
|
|
* Set the partnerId property |
281
|
|
|
* |
282
|
|
|
* @param int $partnerId |
283
|
|
|
* @return $this |
284
|
|
|
*/ |
285
|
2 |
|
public function setPartnerId($partnerId) |
286
|
|
|
{ |
287
|
2 |
|
$this->partnerId = $partnerId; |
288
|
2 |
|
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
|
|
|
|