| @@ 27-35 (lines=9) @@ | ||
| 24 | * |
|
| 25 | * @return \Acquia\LiftClient\Entity\Goal |
|
| 26 | */ |
|
| 27 | public function setId($id) |
|
| 28 | { |
|
| 29 | if (!is_string($id)) { |
|
| 30 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
| 31 | } |
|
| 32 | $this['id'] = $id; |
|
| 33 | ||
| 34 | return $this; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * Gets the 'id' parameter. |
|
| @@ 56-64 (lines=9) @@ | ||
| 53 | * |
|
| 54 | * @return \Acquia\LiftClient\Entity\Goal |
|
| 55 | */ |
|
| 56 | public function setName($name) |
|
| 57 | { |
|
| 58 | if (!is_string($name)) { |
|
| 59 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
| 60 | } |
|
| 61 | $this['name'] = $name; |
|
| 62 | ||
| 63 | return $this; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * Gets the 'name' parameter. |
|
| @@ 189-197 (lines=9) @@ | ||
| 186 | * |
|
| 187 | * @return \Acquia\LiftClient\Entity\Capture |
|
| 188 | */ |
|
| 189 | public function setUrl($url) |
|
| 190 | { |
|
| 191 | if (!is_string($url)) { |
|
| 192 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
| 193 | } |
|
| 194 | $this['url'] = $url; |
|
| 195 | ||
| 196 | return $this; |
|
| 197 | } |
|
| 198 | ||
| 199 | /** |
|
| 200 | * Sets the 'referral_url' parameter. |
|