|
@@ 140-150 (lines=11) @@
|
| 137 |
|
* Throws an exception if the argument given does not match the expected set of |
| 138 |
|
* values. |
| 139 |
|
*/ |
| 140 |
|
public function setRuleIds(array $ruleIds) |
| 141 |
|
{ |
| 142 |
|
if (Utility::arrayDepth($ruleIds) > 1) { |
| 143 |
|
throw new LiftSdkException('Rule Ids argument is more than 1 level deep.'); |
| 144 |
|
} |
| 145 |
|
|
| 146 |
|
// Set only the array values to the rule_ids property. |
| 147 |
|
$this['rule_ids'] = array_values($ruleIds); |
| 148 |
|
|
| 149 |
|
return $this; |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
/** |
| 153 |
|
* Gets the 'rule_ids' parameter. |
|
@@ 176-186 (lines=11) @@
|
| 173 |
|
* Throws an exception if the argument given does not match the expected set of |
| 174 |
|
* values. |
| 175 |
|
*/ |
| 176 |
|
public function setSiteIds(array $siteIds) |
| 177 |
|
{ |
| 178 |
|
if (Utility::arrayDepth($siteIds) > 1) { |
| 179 |
|
throw new LiftSdkException('site_ids argument is more than 1 level deep.'); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
// Set only the array values to the rule_ids property. |
| 183 |
|
$this['site_ids'] = array_values($siteIds); |
| 184 |
|
|
| 185 |
|
return $this; |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
/** |
| 189 |
|
* Gets the 'site_ids' parameter. |
|
@@ 212-222 (lines=11) @@
|
| 209 |
|
* Throws an exception if the argument given does not match the expected set of |
| 210 |
|
* values. |
| 211 |
|
*/ |
| 212 |
|
public function setEventNames(array $eventNames) |
| 213 |
|
{ |
| 214 |
|
if (Utility::arrayDepth($eventNames) > 1) { |
| 215 |
|
throw new LiftSdkException('Event Names argument is more than 1 level deep.'); |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
// Set only the array values to the event_names property. |
| 219 |
|
$this['event_names'] = array_values($eventNames); |
| 220 |
|
|
| 221 |
|
return $this; |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
/** |
| 225 |
|
* Gets the 'rule_ids' parameter. |