1 | <?php |
||
14 | class AnalyticsOverview extends AbstractEntity |
||
15 | { |
||
16 | /** |
||
17 | * @ORM\ManyToOne(targetEntity="AnalyticsConfig", inversedBy="overviews") |
||
18 | * @ORM\JoinColumn(name="config_id", referencedColumnName="id") |
||
19 | */ |
||
20 | private $config; |
||
21 | |||
22 | /** |
||
23 | * @ORM\ManyToOne(targetEntity="AnalyticsSegment", inversedBy="overviews") |
||
24 | * @ORM\JoinColumn(name="segment_id", referencedColumnName="id", nullable=true) |
||
25 | */ |
||
26 | private $segment; |
||
27 | |||
28 | /** |
||
29 | * @ORM\OneToMany(targetEntity="AnalyticsGoal", mappedBy="overview", cascade={"persist", "remove"}) |
||
30 | * @ORM\OrderBy({"name" = "ASC"}) |
||
31 | */ |
||
32 | private $goals; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | * |
||
37 | * @ORM\Column(name="title", type="string", length=255) |
||
38 | */ |
||
39 | private $title; |
||
40 | |||
41 | /** |
||
42 | * @var int |
||
43 | * |
||
44 | * @ORM\Column(name="timespan", type="integer") |
||
45 | */ |
||
46 | private $timespan; |
||
47 | |||
48 | /** |
||
49 | * @var int |
||
50 | * |
||
51 | * @ORM\Column(name="start_days_ago", type="integer") |
||
52 | */ |
||
53 | private $startOffset = 0; |
||
54 | |||
55 | /** |
||
56 | * @var bool |
||
57 | * |
||
58 | * @ORM\Column(name="use_year", type="boolean") |
||
59 | */ |
||
60 | private $useYear = false; |
||
61 | |||
62 | /** |
||
63 | * @var int |
||
64 | * |
||
65 | * @ORM\Column(name="sessions", type="integer") |
||
66 | */ |
||
67 | private $sessions = 0; |
||
68 | |||
69 | /** |
||
70 | * @var int |
||
71 | * |
||
72 | * @ORM\Column(name="users", type="integer") |
||
73 | */ |
||
74 | private $users = 0; |
||
75 | |||
76 | /** |
||
77 | * @var int |
||
78 | * |
||
79 | * @ORM\Column(name="returning_users", type="integer") |
||
80 | */ |
||
81 | private $returningUsers = 0; |
||
82 | |||
83 | /** |
||
84 | * @var float |
||
85 | * |
||
86 | * @ORM\Column(name="new_users", type="float") |
||
87 | */ |
||
88 | private $newUsers = 0; |
||
89 | |||
90 | /** |
||
91 | * @var int |
||
92 | * |
||
93 | * @ORM\Column(name="pageviews", type="integer") |
||
94 | */ |
||
95 | private $pageviews = 0; |
||
96 | |||
97 | /** |
||
98 | * @var float |
||
99 | * |
||
100 | * @ORM\Column(name="pages_per_session", type="float") |
||
101 | */ |
||
102 | private $pagesPerSession = 0; |
||
103 | |||
104 | /** |
||
105 | * @var int |
||
106 | * |
||
107 | * @ORM\Column(name="chart_data_max_value", type="integer") |
||
108 | */ |
||
109 | private $chartDataMaxValue = 0; |
||
110 | |||
111 | /** |
||
112 | * @var string |
||
113 | * |
||
114 | * @ORM\Column(name="avg_session_duration", type="string") |
||
115 | */ |
||
116 | private $avgSessionDuration = 0; |
||
117 | |||
118 | /** |
||
119 | * @var array |
||
120 | * |
||
121 | * @ORM\Column(name="chart_data", type="text") |
||
122 | */ |
||
123 | private $chartData = ''; |
||
124 | |||
125 | /** |
||
126 | * Get percentage of returning users |
||
127 | * |
||
128 | * @return int |
||
|
|||
129 | */ |
||
130 | 1 | public function getReturningUsersPercentage() |
|
134 | |||
135 | /** |
||
136 | * Get percentage of new users |
||
137 | * |
||
138 | * @return int |
||
139 | */ |
||
140 | 1 | public function getNewUsersPercentage() |
|
144 | |||
145 | /** |
||
146 | * Get config |
||
147 | * |
||
148 | * @return int |
||
149 | */ |
||
150 | 1 | public function getConfig() |
|
154 | |||
155 | /** |
||
156 | * Set config |
||
157 | * |
||
158 | * @param int $config |
||
159 | * |
||
160 | * @return AnalyticsTopReferrals |
||
161 | */ |
||
162 | 1 | public function setConfig($config) |
|
168 | |||
169 | /** |
||
170 | * Get segment |
||
171 | * |
||
172 | * @return int |
||
173 | */ |
||
174 | 1 | public function getSegment() |
|
178 | |||
179 | /** |
||
180 | * Set segment |
||
181 | * |
||
182 | * @param int $segment |
||
183 | * |
||
184 | * @return AnalyticsTopReferrals |
||
185 | */ |
||
186 | 1 | public function setSegment($segment) |
|
192 | |||
193 | /** |
||
194 | * Set goals |
||
195 | * |
||
196 | * @param array $goals |
||
197 | * |
||
198 | * @return $this |
||
199 | */ |
||
200 | 1 | public function setGoals($goals) |
|
206 | |||
207 | /** |
||
208 | * Get goals |
||
209 | * |
||
210 | * @return AnalyticsGoal[] |
||
211 | */ |
||
212 | 1 | public function getGoals() |
|
216 | |||
217 | /** |
||
218 | * @return array |
||
219 | */ |
||
220 | 1 | public function getActiveGoals() |
|
231 | |||
232 | /** |
||
233 | * Set chartData |
||
234 | * |
||
235 | * @param array $chartData |
||
236 | * |
||
237 | * @return $this |
||
238 | */ |
||
239 | 1 | public function setChartData($chartData) |
|
245 | |||
246 | /** |
||
247 | * Get chartData |
||
248 | * |
||
249 | * @return array |
||
250 | */ |
||
251 | 1 | public function getChartData() |
|
255 | |||
256 | /** |
||
257 | * Set newUsers |
||
258 | * |
||
259 | * @param float $newUsers |
||
260 | * |
||
261 | * @return AnalyticsOverview |
||
262 | */ |
||
263 | 1 | public function setNewUsers($newUsers) |
|
269 | |||
270 | /** |
||
271 | * Get newUsers |
||
272 | * |
||
273 | * @return float |
||
274 | */ |
||
275 | 1 | public function getNewUsers() |
|
279 | |||
280 | /** |
||
281 | * @param int $returningUsers |
||
282 | * |
||
283 | * @return $this |
||
284 | */ |
||
285 | 1 | public function setReturningUsers($returningUsers) |
|
291 | |||
292 | /** |
||
293 | * @return int |
||
294 | */ |
||
295 | 1 | public function getReturningUsers() |
|
299 | |||
300 | /** |
||
301 | * Set title |
||
302 | * |
||
303 | * @param string $title |
||
304 | * |
||
305 | * @return AnalyticsOverview |
||
306 | */ |
||
307 | 1 | public function setTitle($title) |
|
313 | |||
314 | /** |
||
315 | * Get title |
||
316 | * |
||
317 | * @return string |
||
318 | */ |
||
319 | 1 | public function getTitle() |
|
323 | |||
324 | /** |
||
325 | * Set startOffset |
||
326 | * |
||
327 | * @param int $startOffset |
||
328 | * |
||
329 | * @return AnalyticsOverview |
||
330 | */ |
||
331 | 1 | public function setStartOffset($startOffset) |
|
337 | |||
338 | /** |
||
339 | * Get startOffset |
||
340 | * |
||
341 | * @return int |
||
342 | */ |
||
343 | 1 | public function getStartOffset() |
|
347 | |||
348 | /** |
||
349 | * Set timespan |
||
350 | * |
||
351 | * @param int $timespan |
||
352 | * |
||
353 | * @return AnalyticsOverview |
||
354 | */ |
||
355 | 1 | public function setTimespan($timespan) |
|
361 | |||
362 | /** |
||
363 | * Get timespan |
||
364 | * |
||
365 | * @return int |
||
366 | */ |
||
367 | 1 | public function getTimespan() |
|
371 | |||
372 | /** |
||
373 | * Set sessions |
||
374 | * |
||
375 | * @param int $sessions |
||
376 | * |
||
377 | * @return AnalyticsOverview |
||
378 | */ |
||
379 | 1 | public function setSessions($sessions) |
|
385 | |||
386 | /** |
||
387 | * Get sessions |
||
388 | * |
||
389 | * @return int |
||
390 | */ |
||
391 | 1 | public function getSessions() |
|
395 | |||
396 | /** |
||
397 | * Get Users |
||
398 | * |
||
399 | * @return int |
||
400 | */ |
||
401 | 1 | public function getUsers() |
|
405 | |||
406 | /** |
||
407 | * Set users |
||
408 | * |
||
409 | * @param int $users |
||
410 | * |
||
411 | * @return AnalyticsOverview |
||
412 | */ |
||
413 | 1 | public function setUsers($users) |
|
419 | |||
420 | /** |
||
421 | * Set pageviews |
||
422 | * |
||
423 | * @param int $pageviews |
||
424 | * |
||
425 | * @return AnalyticsOverview |
||
426 | */ |
||
427 | 1 | public function setPageviews($pageviews) |
|
433 | |||
434 | /** |
||
435 | * Get pageviews |
||
436 | * |
||
437 | * @return int |
||
438 | */ |
||
439 | 1 | public function getPageviews() |
|
443 | |||
444 | /** |
||
445 | * Set pagesPerSession |
||
446 | * |
||
447 | * @param float $pagesPerSession |
||
448 | * |
||
449 | * @return AnalyticsOverview |
||
450 | */ |
||
451 | 1 | public function setPagesPerSession($pagesPerSession) |
|
457 | |||
458 | /** |
||
459 | * Get pagesPerSession |
||
460 | * |
||
461 | * @return float |
||
462 | */ |
||
463 | 1 | public function getPagesPerSession() |
|
467 | |||
468 | /** |
||
469 | * Set avgSessionDuration |
||
470 | * |
||
471 | * @param int $avgSessionDuration |
||
472 | * |
||
473 | * @return AnalyticsOverview |
||
474 | */ |
||
475 | 1 | public function setAvgSessionDuration($avgSessionDuration) |
|
481 | |||
482 | /** |
||
483 | * Get avgSessionDuration |
||
484 | * |
||
485 | * @return string |
||
486 | */ |
||
487 | 1 | public function getAvgSessionDuration() |
|
491 | |||
492 | /** |
||
493 | * Set useYear |
||
494 | * |
||
495 | * @param int $useYear |
||
496 | * |
||
497 | * @return AnalyticsOverview |
||
498 | */ |
||
499 | 1 | public function setUseYear($useYear) |
|
505 | |||
506 | /** |
||
507 | * Get useYear |
||
508 | * |
||
509 | * @return int |
||
510 | */ |
||
511 | 1 | public function getUseYear() |
|
515 | |||
516 | /** |
||
517 | * Set chartDataMaxValue |
||
518 | * |
||
519 | * @param int $chartDataMaxValue |
||
520 | * |
||
521 | * @return AnalyticsOverview |
||
522 | */ |
||
523 | 1 | public function setChartDataMaxValue($chartDataMaxValue) |
|
529 | |||
530 | /** |
||
531 | * Get chartDataMaxValue |
||
532 | * |
||
533 | * @return int |
||
534 | */ |
||
535 | 1 | public function getChartDataMaxValue() |
|
539 | } |
||
540 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.