1 | <?php |
||
14 | class UrlTargeting |
||
15 | { |
||
16 | /** |
||
17 | * Conditions to activate the experiment; our knowledge base article on |
||
18 | * Activation Types is the best guide for how to set up this data. |
||
19 | * @var type |
||
20 | */ |
||
21 | private $conditions; |
||
22 | |||
23 | /** |
||
24 | * URL to load in the editor for this page |
||
25 | * @var type |
||
26 | */ |
||
27 | private $editUrl; |
||
28 | |||
29 | /** |
||
30 | * Stringified Javascript function that determines when the Page is activated. |
||
31 | * Only required when activation_type is 'polling' or 'callback'. |
||
32 | * @var type |
||
33 | */ |
||
34 | private $activationCode; |
||
35 | |||
36 | /** |
||
37 | * How this page is activated. See the full documentation on the Page object. |
||
38 | * @var type |
||
39 | */ |
||
40 | private $activationType; |
||
41 | |||
42 | /** |
||
43 | * Unique string identifier for this Page within the Project |
||
44 | * @var type |
||
45 | */ |
||
46 | private $key; |
||
47 | |||
48 | /** |
||
49 | * The unique identifier of the Page that represents the experiment or campaign's URL Targeting. |
||
50 | * @var type |
||
51 | */ |
||
52 | private $pageId; |
||
53 | |||
54 | /** |
||
55 | * Constructor. |
||
56 | */ |
||
57 | public function __construct($options = array()) |
||
73 | |||
74 | /** |
||
75 | * Returns this object as array. |
||
76 | */ |
||
77 | public function toArray() |
||
90 | |||
91 | public function getConditions() |
||
95 | |||
96 | public function setConditions($conditions) |
||
100 | |||
101 | public function getEditUrl() |
||
105 | |||
106 | public function setEditUrl($editUrl) |
||
110 | |||
111 | public function getActivationCode() |
||
115 | |||
116 | public function setActivationCode($activationCode) |
||
120 | |||
121 | public function getActivationType() |
||
125 | |||
126 | public function setActivationType($activationType) |
||
130 | |||
131 | public function getKey() |
||
135 | |||
136 | public function setKey($key) |
||
140 | |||
141 | public function getPageId() |
||
145 | |||
146 | public function setPageId($pageId) |
||
150 | } |
||
151 | |||
152 |
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.