| @@ 120-130 (lines=11) @@ | ||
| 117 | * |
|
| 118 | * @return \Acquia\LiftClient\Entity\Goal |
|
| 119 | */ |
|
| 120 | public function setRuleIds(array $ruleIds) |
|
| 121 | { |
|
| 122 | if (Utility::arrayDepth($ruleIds) > 1) { |
|
| 123 | throw new LiftSdkException('Rule Ids argument is more than 1 level deep.'); |
|
| 124 | } |
|
| 125 | ||
| 126 | // Set only the array values to the rule_ids property. |
|
| 127 | $this['rule_ids'] = array_values($ruleIds); |
|
| 128 | ||
| 129 | return $this; |
|
| 130 | } |
|
| 131 | ||
| 132 | /** |
|
| 133 | * Gets the 'rule_ids' parameter. |
|
| @@ 151-161 (lines=11) @@ | ||
| 148 | * |
|
| 149 | * @return \Acquia\LiftClient\Entity\Goal |
|
| 150 | */ |
|
| 151 | public function setSiteIds(array $siteIds) |
|
| 152 | { |
|
| 153 | if (Utility::arrayDepth($siteIds) > 1) { |
|
| 154 | throw new LiftSdkException('site_ids argument is more than 1 level deep.'); |
|
| 155 | } |
|
| 156 | ||
| 157 | // Set only the array values to the rule_ids property. |
|
| 158 | $this['site_ids'] = array_values($siteIds); |
|
| 159 | ||
| 160 | return $this; |
|
| 161 | } |
|
| 162 | ||
| 163 | /** |
|
| 164 | * Gets the 'site_ids' parameter. |
|
| @@ 182-192 (lines=11) @@ | ||
| 179 | * |
|
| 180 | * @return \Acquia\LiftClient\Entity\Goal |
|
| 181 | */ |
|
| 182 | public function setEventNames(array $eventNames) |
|
| 183 | { |
|
| 184 | if (Utility::arrayDepth($eventNames) > 1) { |
|
| 185 | throw new LiftSdkException('Event Names argument is more than 1 level deep.'); |
|
| 186 | } |
|
| 187 | ||
| 188 | // Set only the array values to the event_names property. |
|
| 189 | $this['event_names'] = array_values($eventNames); |
|
| 190 | ||
| 191 | return $this; |
|
| 192 | } |
|
| 193 | ||
| 194 | /** |
|
| 195 | * Gets the 'rule_ids' parameter. |
|