1 | <?php |
||
14 | class Attribute |
||
15 | { |
||
16 | /** |
||
17 | * Unique string identifier for this Attribute within the project |
||
18 | * @var string |
||
19 | */ |
||
20 | private $key; |
||
21 | |||
22 | /** |
||
23 | * The ID of the project the Attribute belongs to |
||
24 | * @var integer |
||
25 | */ |
||
26 | private $projectId; |
||
27 | |||
28 | /** |
||
29 | * Whether or not the Attribute has been archived |
||
30 | * @var boolean |
||
31 | */ |
||
32 | private $archived; |
||
33 | |||
34 | /** |
||
35 | * A short description of the Attribute |
||
36 | * @var string |
||
37 | */ |
||
38 | private $description; |
||
39 | |||
40 | /** |
||
41 | * The name of the Attribute |
||
42 | * @var string |
||
43 | */ |
||
44 | private $name; |
||
45 | |||
46 | /** |
||
47 | * Whether this Attribute is a custom dimension or custom attribute. If this |
||
48 | * is a custom dimension, it belongs to an Optimizely Classic experiment and |
||
49 | * is read-only. |
||
50 | * Can be custom_attribute or custom_dimension |
||
51 | */ |
||
52 | private $conditionType; |
||
53 | |||
54 | /** |
||
55 | * The unique identifier for the Attribute |
||
56 | * @var integer |
||
57 | */ |
||
58 | private $id; |
||
59 | |||
60 | /** |
||
61 | * The last time the Attribute was modified |
||
62 | * @var string |
||
63 | */ |
||
64 | private $lastModified; |
||
65 | |||
66 | /** |
||
67 | * Constructor. |
||
68 | */ |
||
69 | 7 | public function __construct($options = array()) |
|
86 | |||
87 | /** |
||
88 | * Returns this object as array. |
||
89 | */ |
||
90 | 3 | public function toArray() |
|
112 | |||
113 | 5 | public function getKey() |
|
117 | |||
118 | 7 | public function setKey($key) |
|
122 | |||
123 | 5 | public function getProjectId() |
|
127 | |||
128 | 7 | public function setProjectId($projectId) |
|
132 | |||
133 | 5 | public function getArchived() |
|
137 | |||
138 | 7 | public function setArchived($archived) |
|
142 | |||
143 | 5 | public function getDescription() |
|
147 | |||
148 | 7 | public function setDescription($description) |
|
152 | |||
153 | 7 | public function getName() |
|
157 | |||
158 | 7 | public function setName($name) |
|
162 | |||
163 | 5 | public function getConditionType() |
|
167 | |||
168 | 7 | public function setConditionType($conditionType) |
|
172 | |||
173 | 5 | public function getId() |
|
177 | |||
178 | 7 | public function setId($id) |
|
182 | |||
183 | 5 | public function getLastModified() |
|
187 | |||
188 | 7 | public function setLastModified($lastModified) |
|
192 | } |
||
193 | |||
203 |
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.