1 | <?php |
||
14 | class Audience |
||
15 | { |
||
16 | /** |
||
17 | * The project the Audience was created in |
||
18 | * @var integer |
||
19 | */ |
||
20 | private $projectId; |
||
21 | |||
22 | /** |
||
23 | * Whether the Audience has been archived |
||
24 | * @var boolean |
||
25 | */ |
||
26 | private $archived; |
||
27 | |||
28 | /** |
||
29 | * A string defining the targeting rules for an audience. |
||
30 | * @var string |
||
31 | */ |
||
32 | private $conditions; |
||
33 | |||
34 | /** |
||
35 | * A short description of the Audience |
||
36 | * @var string |
||
37 | */ |
||
38 | private $description; |
||
39 | |||
40 | /** |
||
41 | * The name of the Audience |
||
42 | * @var string |
||
43 | */ |
||
44 | private $name; |
||
45 | |||
46 | /** |
||
47 | * True if the audiences is available for segmentation on the results page (Platinum only). |
||
48 | * @var boolean |
||
49 | */ |
||
50 | private $segmentation; |
||
51 | |||
52 | /** |
||
53 | * The time the Audience was initially created |
||
54 | * @var string |
||
55 | */ |
||
56 | private $created; |
||
57 | |||
58 | /** |
||
59 | * The unique identifier for the Audience. |
||
60 | * @var integer |
||
61 | */ |
||
62 | private $id; |
||
63 | |||
64 | /** |
||
65 | * The last time the Audience was modified |
||
66 | * @var string |
||
67 | */ |
||
68 | private $lastModified; |
||
69 | |||
70 | /** |
||
71 | * Whether or not Audience is a classic Audience. If true, the Audience is |
||
72 | * only compatible with classic Experiments. Otherwise, the Audience may be |
||
73 | * used in Optimizely X Campaigns. |
||
74 | * @var boolean |
||
75 | */ |
||
76 | private $isClassic; |
||
77 | |||
78 | /** |
||
79 | * Constructor. |
||
80 | */ |
||
81 | 7 | public function __construct($options = array()) |
|
100 | |||
101 | /** |
||
102 | * Returns this object as array. |
||
103 | */ |
||
104 | 3 | public function toArray() |
|
128 | |||
129 | 2 | public function getProjectId() |
|
133 | |||
134 | 7 | public function setProjectId($projectId) |
|
138 | |||
139 | 2 | public function getArchived() |
|
143 | |||
144 | 7 | public function setArchived($archived) |
|
148 | |||
149 | 2 | public function getConditions() |
|
153 | |||
154 | 7 | public function setConditions($conditions) |
|
158 | |||
159 | 2 | public function getDescription() |
|
163 | |||
164 | 7 | public function setDescription($description) |
|
168 | |||
169 | 6 | public function getName() |
|
173 | |||
174 | 7 | public function setName($name) |
|
178 | |||
179 | 2 | public function getSegmentation() |
|
183 | |||
184 | 7 | public function setSegmentation($segmentation) |
|
188 | |||
189 | 1 | public function getCreated() |
|
193 | |||
194 | 5 | public function setCreated($created) |
|
198 | |||
199 | 1 | public function getId() |
|
203 | |||
204 | 5 | public function setId($id) |
|
208 | |||
209 | 1 | public function getLastModified() |
|
213 | |||
214 | 5 | public function setLastModified($lastModified) |
|
218 | |||
219 | public function getIsClassic() |
||
223 | |||
224 | public function setIsClassic($isClassic) |
||
228 | } |
||
229 | |||
235 |
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.