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