| @@ 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. |
|
| @@ 85-93 (lines=9) @@ | ||
| 82 | * |
|
| 83 | * @return \Acquia\LiftClient\Entity\Goal |
|
| 84 | */ |
|
| 85 | public function setDescription($description) |
|
| 86 | { |
|
| 87 | if (!is_string($description)) { |
|
| 88 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
| 89 | } |
|
| 90 | $this['description'] = $description; |
|
| 91 | ||
| 92 | return $this; |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * Gets the 'description' parameter. |
|
| @@ 190-198 (lines=9) @@ | ||
| 187 | * |
|
| 188 | * @return \Acquia\LiftClient\Entity\Capture |
|
| 189 | */ |
|
| 190 | public function setUrl($url) |
|
| 191 | { |
|
| 192 | if (!is_string($url)) { |
|
| 193 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
| 194 | } |
|
| 195 | $this['url'] = $url; |
|
| 196 | ||
| 197 | return $this; |
|
| 198 | } |
|
| 199 | ||
| 200 | /** |
|
| 201 | * Sets the 'referral_url' parameter. |
|