1 | <?php |
||
14 | class VariationReach |
||
15 | { |
||
16 | /** |
||
17 | * Total number of visitors exposed to this particular variation |
||
18 | * @var integer |
||
19 | */ |
||
20 | private $count; |
||
21 | |||
22 | /** |
||
23 | * The name of the variation |
||
24 | * @var string |
||
25 | */ |
||
26 | private $name; |
||
27 | |||
28 | /** |
||
29 | * The unique identifier for the variation |
||
30 | * @var string |
||
31 | */ |
||
32 | private $variationId; |
||
33 | |||
34 | /** |
||
35 | * |
||
36 | * @var number |
||
37 | */ |
||
38 | private $variationReach; |
||
39 | |||
40 | /** |
||
41 | * Constructor. |
||
42 | */ |
||
43 | public function __construct($options = array()) |
||
56 | |||
57 | /** |
||
58 | * Returns this object as array. |
||
59 | */ |
||
60 | public function toArray() |
||
78 | |||
79 | public function getCount() |
||
83 | |||
84 | public function setCount($count) |
||
88 | |||
89 | public function getName() |
||
93 | |||
94 | public function setName($name) |
||
98 | |||
99 | public function getVariationId() |
||
103 | |||
104 | public function setVariationId($variationId) |
||
108 | |||
109 | public function getVariationReach() |
||
113 | |||
114 | public function setVariationReach($variationReach) |
||
118 | } |
||
119 | |||
130 |
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.