1 | <?php |
||
7 | class View extends Model |
||
8 | { |
||
9 | /** |
||
10 | * @var integer |
||
11 | */ |
||
12 | protected $id; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $uuid; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $ymClientId; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $gaClientId; |
||
28 | |||
29 | /** |
||
30 | * @var integer |
||
31 | */ |
||
32 | protected $projectId; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $source; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $campaign; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $keyword; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $seoSystem; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $page; |
||
58 | |||
59 | /** |
||
60 | * @var Visitor|null |
||
61 | */ |
||
62 | protected $visitor; |
||
63 | |||
64 | /** |
||
65 | * @var Visitor|null |
||
66 | */ |
||
67 | protected $realVisitor; |
||
68 | |||
69 | public function __construct(array $viewData = []) |
||
108 | |||
109 | /** |
||
110 | * @return bool |
||
111 | * @throws LPTrackerSDKException |
||
112 | */ |
||
113 | public function validate() |
||
127 | |||
128 | /** |
||
129 | * @return array |
||
130 | */ |
||
131 | public function toArray() |
||
153 | |||
154 | /** |
||
155 | * @return int |
||
156 | */ |
||
157 | public function getId() |
||
161 | |||
162 | /** |
||
163 | * @return int |
||
164 | */ |
||
165 | public function getProjectId() |
||
169 | |||
170 | /** |
||
171 | * @return string |
||
172 | */ |
||
173 | public function getSource() |
||
177 | |||
178 | /** |
||
179 | * @param string $source |
||
180 | * @return $this |
||
181 | */ |
||
182 | public function setSource($source) |
||
187 | |||
188 | /** |
||
189 | * @return string |
||
190 | */ |
||
191 | public function getCampaign() |
||
195 | |||
196 | /** |
||
197 | * @param string $campaign |
||
198 | * @return $this |
||
199 | */ |
||
200 | public function setCampaign($campaign) |
||
205 | |||
206 | /** |
||
207 | * @return string |
||
208 | */ |
||
209 | public function getKeyword() |
||
213 | |||
214 | /** |
||
215 | * @param string $keyword |
||
216 | * @return $this |
||
217 | */ |
||
218 | public function setKeyword($keyword) |
||
223 | |||
224 | /** |
||
225 | * @return string |
||
226 | */ |
||
227 | public function getSeoSystem() |
||
231 | |||
232 | /** |
||
233 | * @param string $seoSystem |
||
234 | * @return $this |
||
235 | */ |
||
236 | public function setSeoSystem($seoSystem) |
||
241 | |||
242 | /** |
||
243 | * @return string |
||
244 | */ |
||
245 | public function getPage() |
||
249 | |||
250 | /** |
||
251 | * @param string $page |
||
252 | * @return $this |
||
253 | */ |
||
254 | public function setPage($page) |
||
259 | |||
260 | /** |
||
261 | * @return string |
||
262 | */ |
||
263 | public function getUuid() |
||
267 | |||
268 | /** |
||
269 | * @return string |
||
270 | */ |
||
271 | public function getYmClientId() |
||
275 | |||
276 | /** |
||
277 | * @return string |
||
278 | */ |
||
279 | public function getGaClientId() |
||
283 | |||
284 | /** |
||
285 | * @return Visitor|null |
||
286 | */ |
||
287 | public function getVisitor() |
||
291 | |||
292 | /** |
||
293 | * @return Visitor|null |
||
294 | */ |
||
295 | public function getRealVisitor() |
||
299 | } |
||
300 |