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