1 | <?php |
||
12 | class Audience |
||
13 | { |
||
14 | /** |
||
15 | * The project the Audience was created in |
||
16 | * @var integer |
||
17 | */ |
||
18 | private $projectId; |
||
19 | |||
20 | /** |
||
21 | * Whether the Audience has been archived |
||
22 | * @var boolean |
||
23 | */ |
||
24 | private $archived; |
||
25 | |||
26 | /** |
||
27 | * A string defining the targeting rules for an audience. |
||
28 | * @var string |
||
29 | */ |
||
30 | private $conditions; |
||
31 | |||
32 | /** |
||
33 | * A short description of the Audience |
||
34 | * @var string |
||
35 | */ |
||
36 | private $description; |
||
37 | |||
38 | /** |
||
39 | * The name of the Audience |
||
40 | * @var string |
||
41 | */ |
||
42 | private $name; |
||
43 | |||
44 | /** |
||
45 | * True if the audiences is available for segmentation on the results page (Platinum only). |
||
46 | * @var boolean |
||
47 | */ |
||
48 | private $segmentation; |
||
49 | |||
50 | /** |
||
51 | * The time the Audience was initially created |
||
52 | * @var string |
||
53 | */ |
||
54 | private $created; |
||
55 | |||
56 | /** |
||
57 | * The unique identifier for the Audience. |
||
58 | * @var integer |
||
59 | */ |
||
60 | private $id; |
||
61 | |||
62 | /** |
||
63 | * The last time the Audience was modified |
||
64 | * @var string |
||
65 | */ |
||
66 | private $lastModified; |
||
67 | |||
68 | /** |
||
69 | * Constructor. |
||
70 | */ |
||
71 | 7 | public function __construct($options = array()) |
|
89 | |||
90 | /** |
||
91 | * Returns this object as array. |
||
92 | */ |
||
93 | 3 | public function toArray() |
|
116 | |||
117 | 2 | public function getProjectId() |
|
121 | |||
122 | 7 | public function setProjectId($projectId) |
|
126 | |||
127 | 2 | public function getArchived() |
|
131 | |||
132 | 7 | public function setArchived($archived) |
|
136 | |||
137 | 2 | public function getConditions() |
|
141 | |||
142 | 7 | public function setConditions($conditions) |
|
146 | |||
147 | 2 | public function getDescription() |
|
151 | |||
152 | 7 | public function setDescription($description) |
|
156 | |||
157 | 6 | public function getName() |
|
161 | |||
162 | 7 | public function setName($name) |
|
166 | |||
167 | 2 | public function getSegmentation() |
|
171 | |||
172 | 7 | public function setSegmentation($segmentation) |
|
176 | |||
177 | 1 | public function getCreated() |
|
181 | |||
182 | 5 | public function setCreated($created) |
|
186 | |||
187 | 1 | public function getId() |
|
191 | |||
192 | 5 | public function setId($id) |
|
196 | |||
197 | 1 | public function getLastModified() |
|
201 | |||
202 | 5 | public function setLastModified($lastModified) |
|
206 | } |
||
207 | |||
213 |
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.