Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace Drupal\visitors; |
4 | |
5 | /** |
6 | * Visitors report data. |
7 | */ |
8 | interface VisitorsReportInterface { |
9 | |
10 | /** |
11 | * The number of hits for each day of the month. |
12 | */ |
13 | const REFERER_TYPE_INTERNAL_PAGES = 0; |
14 | |
15 | /** |
16 | * The number of hits for each day of the month. |
17 | */ |
18 | const REFERER_TYPE_EXTERNAL_PAGES = 1; |
19 | |
20 | /** |
21 | * Get the number of hits for each referer. |
22 | * |
23 | * @param array $header |
24 | * Table header configuration. |
25 | * |
26 | * @return array |
27 | * The number of hits for each referer. |
28 | */ |
29 | public function referer(array $header); |
30 | |
31 | /** |
32 | * Details about the visit. |
33 | * |
34 | * @param int $hit_id |
35 | * The hit id. |
36 | * |
37 | * @return array |
38 | * The details about the visit. |
39 | */ |
40 | public function hitDetails($hit_id); |
41 | |
42 | } |