1 | <?php |
||
8 | class Rule extends Entity |
||
9 | { |
||
10 | /** |
||
11 | * @param array $array |
||
12 | */ |
||
13 | public function __construct(array $array = []) |
||
17 | |||
18 | /** |
||
19 | * Sets the 'id' parameter. |
||
20 | * |
||
21 | * @param string $id |
||
22 | * |
||
23 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
24 | * |
||
25 | * @return \Acquia\LiftClient\Entity\Rule |
||
26 | */ |
||
27 | public function setId($id) |
||
36 | |||
37 | /** |
||
38 | * Gets the 'id' parameter. |
||
39 | * |
||
40 | * @return string The Identifier of the Rule |
||
41 | */ |
||
42 | public function getId() |
||
46 | |||
47 | /** |
||
48 | * Sets the 'label' parameter. |
||
49 | * |
||
50 | * @param string $label |
||
51 | * |
||
52 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
53 | * |
||
54 | * @return \Acquia\LiftClient\Entity\Rule |
||
55 | */ |
||
56 | public function setLabel($label) |
||
65 | |||
66 | /** |
||
67 | * Gets the 'label' parameter. |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getLabel() |
||
75 | |||
76 | /** |
||
77 | * Sets the 'description' parameter. |
||
78 | * |
||
79 | * @param string $description |
||
80 | * |
||
81 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
82 | * |
||
83 | * @return \Acquia\LiftClient\Entity\Rule |
||
84 | */ |
||
85 | public function setDescription($description) |
||
94 | |||
95 | /** |
||
96 | * Gets the 'description' parameter. |
||
97 | * |
||
98 | * @return string The Description of the Rule |
||
99 | */ |
||
100 | public function getDescription() |
||
104 | |||
105 | /** |
||
106 | * Sets the 'slot_id' parameter. |
||
107 | * |
||
108 | * @param string $slotId |
||
109 | * |
||
110 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
111 | * |
||
112 | * @return \Acquia\LiftClient\Entity\Rule |
||
113 | */ |
||
114 | public function setSlotId($slotId) |
||
123 | |||
124 | /** |
||
125 | * Gets the 'slot_id' parameter. |
||
126 | * |
||
127 | * @return string The Description of the Rule |
||
128 | */ |
||
129 | public function getSlotId() |
||
133 | |||
134 | /** |
||
135 | * Sets the 'weight' parameter. |
||
136 | * |
||
137 | * @param int $weight |
||
138 | * |
||
139 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
140 | * |
||
141 | * @return \Acquia\LiftClient\Entity\Rule |
||
142 | */ |
||
143 | public function setWeight($weight) |
||
152 | |||
153 | /** |
||
154 | * Gets the 'weight' parameter. |
||
155 | * |
||
156 | * @return int The weight of the Rule |
||
157 | */ |
||
158 | public function getWeight() |
||
162 | |||
163 | /** |
||
164 | * Sets the 'content' parameter. |
||
165 | * |
||
166 | * @param Content[] $contentList |
||
167 | * |
||
168 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
169 | * |
||
170 | * @return \Acquia\LiftClient\Entity\Rule |
||
171 | */ |
||
172 | public function setContent(array $contentList) |
||
182 | |||
183 | /** |
||
184 | * Gets the 'content' parameter. |
||
185 | * |
||
186 | * @return Content[] The list of content this rule applies to |
||
187 | */ |
||
188 | public function getContent() |
||
198 | |||
199 | /** |
||
200 | * Sets the 'segment' parameter. |
||
201 | * |
||
202 | * @param string $segment |
||
203 | * |
||
204 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
205 | * |
||
206 | * @return \Acquia\LiftClient\Entity\Rule |
||
207 | */ |
||
208 | public function setSegment($segment) |
||
217 | |||
218 | /** |
||
219 | * Gets the 'segment' parameter. |
||
220 | * |
||
221 | * @return string |
||
222 | */ |
||
223 | public function getSegment() |
||
227 | |||
228 | /** |
||
229 | * Sets the 'status' parameter. |
||
230 | * |
||
231 | * @param string $status |
||
232 | * |
||
233 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
234 | * |
||
235 | * @return \Acquia\LiftClient\Entity\Rule |
||
236 | */ |
||
237 | public function setStatus($status) |
||
249 | |||
250 | /** |
||
251 | * Gets the 'status' parameter. |
||
252 | * |
||
253 | * @return string |
||
254 | */ |
||
255 | public function getStatus() |
||
259 | |||
260 | /** |
||
261 | * Gets the 'created' parameter. |
||
262 | * |
||
263 | * @return DateTime|false |
||
264 | */ |
||
265 | public function getCreated() |
||
272 | |||
273 | /** |
||
274 | * Gets the 'updated' parameter. |
||
275 | * |
||
276 | * @return DateTime|false |
||
277 | */ |
||
278 | public function getUpdated() |
||
285 | |||
286 | /** |
||
287 | * Sets the Rule test_config property. |
||
288 | * |
||
289 | * @param \Acquia\LiftClient\Entity\TestConfigInterface $testConfig |
||
290 | * |
||
291 | * @return \Acquia\LiftClient\Entity\Rule |
||
292 | */ |
||
293 | public function setTestConfig(TestConfigInterface $testConfig) |
||
319 | |||
320 | /** |
||
321 | * Gets the 'test_config' parameter. |
||
322 | * |
||
323 | * @return \Acquia\LiftClient\Entity\TestConfigInterface|null $testConfig |
||
324 | */ |
||
325 | public function getTestConfig() |
||
345 | } |
||
346 |