| @@ 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. |
|
| @@ 186-194 (lines=9) @@ | ||
| 183 | * |
|
| 184 | * @return \Acquia\LiftClient\Entity\Capture |
|
| 185 | */ |
|
| 186 | public function setUrl($url) |
|
| 187 | { |
|
| 188 | if (!is_string($url)) { |
|
| 189 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
| 190 | } |
|
| 191 | $this['url'] = $url; |
|
| 192 | ||
| 193 | return $this; |
|
| 194 | } |
|
| 195 | ||
| 196 | /** |
|
| 197 | * Sets the 'site_id' parameter. |
|