1 | <?php |
||
14 | class CampaignMetricResults |
||
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 Campaign. |
||
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 | * A map of results for the variants affected by the campaign. Variants may |
||
52 | * represent aggregated results scoped to the campaign and/or individual |
||
53 | * experiment results scoped to just that experiment. The special variant |
||
54 | * 'baseline' represents visitors that have been held back from any change |
||
55 | * in experience across all Experiments in the Campaign. The special variant |
||
56 | * 'campaign' represents the aggregated effect of all experiments included in |
||
57 | * the Campaign. |
||
58 | * @var VariantResults |
||
59 | */ |
||
60 | private $results; |
||
61 | |||
62 | /** |
||
63 | * Can be 'session', 'visitor' or 'event'. |
||
64 | * @var string |
||
65 | */ |
||
66 | private $unit; |
||
67 | |||
68 | /** |
||
69 | * Constructor. |
||
70 | */ |
||
71 | 3 | public function __construct($options = array()) |
|
94 | |||
95 | /** |
||
96 | * Returns this object as array. |
||
97 | */ |
||
98 | 1 | public function toArray() |
|
123 | |||
124 | 1 | public function getEvent() |
|
128 | |||
129 | 3 | public function setEvent($event) |
|
133 | |||
134 | 1 | public function getEventName() |
|
138 | |||
139 | 3 | public function setEventName($eventName) |
|
143 | |||
144 | 1 | public function getMeasure() |
|
148 | |||
149 | 3 | public function setMeasure($measure) |
|
153 | |||
154 | 1 | public function getMetricId() |
|
158 | |||
159 | 3 | public function setMetricId($metricId) |
|
163 | |||
164 | 1 | public function getPriority() |
|
168 | |||
169 | 3 | public function setPriority($priority) |
|
173 | |||
174 | 1 | public function getResults() |
|
178 | |||
179 | 3 | public function setResults($results) |
|
183 | |||
184 | 1 | public function getUnit() |
|
188 | |||
189 | 3 | public function setUnit($unit) |
|
193 | } |
||
194 | |||
200 |
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.