1 | <?php |
||
14 | class ExperimentMetricResults |
||
15 | { |
||
16 | /** |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | private $event; |
||
21 | |||
22 | /** |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private $eventName; |
||
27 | |||
28 | /** |
||
29 | * Conversions indicate the total number of visitors or sessions where the |
||
30 | * event happened. Impressions indicate the total number of times the event |
||
31 | * happened (possibly multiple per visitor or session). Revenue indicates |
||
32 | * the sum of all revenue sent from all events in the Experiment. |
||
33 | * Can be 'conversions', 'impressions' or 'revenue'. |
||
34 | * @var string |
||
35 | */ |
||
36 | private $measure; |
||
37 | |||
38 | /** |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | private $metricId; |
||
43 | |||
44 | /** |
||
45 | * |
||
46 | * @var integer |
||
47 | */ |
||
48 | private $priority; |
||
49 | |||
50 | /** |
||
51 | * Can be 'session', 'visitor' or 'event' |
||
52 | * @var string |
||
53 | */ |
||
54 | private $unit; |
||
55 | |||
56 | /** |
||
57 | * A map of results for each Variation in the Experiment keyed by Variation ID |
||
58 | * @var array[VariantResults] |
||
59 | */ |
||
60 | private $variationResults; |
||
61 | |||
62 | /** |
||
63 | * Constructor. |
||
64 | */ |
||
65 | 3 | public function __construct($options = array()) |
|
81 | |||
82 | /** |
||
83 | * Returns this object as array. |
||
84 | */ |
||
85 | 1 | public function toArray() |
|
97 | |||
98 | 1 | public function getEvent() |
|
102 | |||
103 | 3 | public function setEvent($event) |
|
107 | |||
108 | 1 | public function getEventName() |
|
112 | |||
113 | 3 | public function setEventName($eventName) |
|
117 | |||
118 | 1 | public function getMeasure() |
|
122 | |||
123 | 3 | public function setMeasure($measure) |
|
127 | |||
128 | 1 | public function getMetricId() |
|
132 | |||
133 | 3 | public function setMetricId($metricId) |
|
137 | |||
138 | 1 | public function getPriority() |
|
142 | |||
143 | 3 | public function setPriority($priority) |
|
147 | |||
148 | 1 | public function getUnit() |
|
152 | |||
153 | 3 | public function setUnit($unit) |
|
157 | |||
158 | 1 | public function getVariationResults() |
|
162 | |||
163 | 3 | public function setVariationResults($variationResults) |
|
167 | } |
||
168 | |||
178 |
According to the PSR-2, the body of a case statement must start on the line immediately following the case statement.
}
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.