-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBaseAnalyticsInterface.php
116 lines (97 loc) · 2.17 KB
/
BaseAnalyticsInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/**
* Created by PhpStorm.
* User: vinay
* Date: 5/12/16
* Time: 4:22 PM
*/
namespace Revinate\AnalyticsBundle;
use Revinate\AnalyticsBundle\Dimension\Dimension;
use Revinate\AnalyticsBundle\Filter\CustomFilterInterface;
use Revinate\AnalyticsBundle\FilterSource\AbstractFilterSource;
use Revinate\AnalyticsBundle\FilterSource\FilterSourceInterface;
use Revinate\AnalyticsBundle\Metric\Metric;
interface BaseAnalyticsInterface {
/**
* @param string $name
* @return Dimension
*/
public function getDimension($name);
/**
* @param string $name
* @return Metric
*/
public function getMetric($name);
/**
* @param string $name
* @return AbstractFilterSource
*/
public function getFilterSource($name);
/**
* @param $name
* @return CustomFilterInterface
*/
public function getCustomFilter($name);
/**
* @return FilterSourceInterface[]
*/
public function getFilterSources();
/**
* @return CustomFilterInterface[]
*/
public function getCustomFilters();
/**
* @param $query
* @param $page
* @param $size
* @return array
*/
public function getDimensionsArray($query, $page, $size);
/**
* @param $query
* @param $page
* @param $size
* @return array
*/
public function getMetricsArray($query, $page, $size);
/**
* @return array
*/
public function getCustomFiltersArray();
/**
* @return string
*/
public function getIndex();
/**
* @return string
*/
public function getType();
/**
* @param $query
* @param $page
* @param $size
* @return mixed
*/
public function getConfig($query, $page, $size);
/**
* @return mixed
*/
public function getContext();
/**
* @param array $context
*/
public function setContext($context);
/**
* @param $key
* @return null
*/
public function getContextValue($key);
/**
* @return array|null
*/
public function getDateRange();
/**
* @param array|null $dateRange
*/
public function setDateRange($dateRange);
}