1 | <?php |
||
12 | class ExperimentMetricResults |
||
13 | { |
||
14 | /** |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | private $event; |
||
19 | |||
20 | /** |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | private $eventName; |
||
25 | |||
26 | /** |
||
27 | * Conversions indicate the total number of visitors or sessions where the |
||
28 | * event happened. Impressions indicate the total number of times the event |
||
29 | * happened (possibly multiple per visitor or session). Revenue indicates |
||
30 | * the sum of all revenue sent from all events in the Experiment. |
||
31 | * Can be 'conversions', 'impressions' or 'revenue'. |
||
32 | * @var string |
||
33 | */ |
||
34 | private $measure; |
||
35 | |||
36 | /** |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | private $metricId; |
||
41 | |||
42 | /** |
||
43 | * |
||
44 | * @var integer |
||
45 | */ |
||
46 | private $priority; |
||
47 | |||
48 | /** |
||
49 | * Can be 'session', 'visitor' or 'event' |
||
50 | * @var string |
||
51 | */ |
||
52 | private $unit; |
||
53 | |||
54 | /** |
||
55 | * A map of results for each Variation in the Experiment keyed by Variation ID |
||
56 | * @var array[VariantResults] |
||
57 | */ |
||
58 | private $variationResults; |
||
59 | |||
60 | /** |
||
61 | * Constructor. |
||
62 | */ |
||
63 | 3 | public function __construct($options = array()) |
|
79 | |||
80 | /** |
||
81 | * Returns this object as array. |
||
82 | */ |
||
83 | 1 | public function toArray() |
|
95 | |||
96 | 1 | public function getEvent() |
|
100 | |||
101 | 3 | public function setEvent($event) |
|
105 | |||
106 | 1 | public function getEventName() |
|
110 | |||
111 | 3 | public function setEventName($eventName) |
|
115 | |||
116 | 1 | public function getMeasure() |
|
120 | |||
121 | 3 | public function setMeasure($measure) |
|
125 | |||
126 | 1 | public function getMetricId() |
|
130 | |||
131 | 3 | public function setMetricId($metricId) |
|
135 | |||
136 | 1 | public function getPriority() |
|
140 | |||
141 | 3 | public function setPriority($priority) |
|
145 | |||
146 | 1 | public function getUnit() |
|
150 | |||
151 | 3 | public function setUnit($unit) |
|
155 | |||
156 | 1 | public function getVariationResults() |
|
160 | |||
161 | 3 | public function setVariationResults($variationResults) |
|
165 | } |
||
166 | |||
176 |
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.