| @@ 38-46 (lines=9) @@ | ||
| 35 | * Throws an exception if the argument given does not match the expected set of |
|
| 36 | * values. |
|
| 37 | */ |
|
| 38 | public function setId($id) |
|
| 39 | { |
|
| 40 | if (!is_string($id)) { |
|
| 41 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
| 42 | } |
|
| 43 | $this['id'] = $id; |
|
| 44 | ||
| 45 | return $this; |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * Gets the 'id' parameter. |
|
| @@ 72-80 (lines=9) @@ | ||
| 69 | * Throws an exception if the argument given does not match the expected set of |
|
| 70 | * values. |
|
| 71 | */ |
|
| 72 | public function setName($name) |
|
| 73 | { |
|
| 74 | if (!is_string($name)) { |
|
| 75 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
| 76 | } |
|
| 77 | $this['name'] = $name; |
|
| 78 | ||
| 79 | return $this; |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * Gets the 'name' parameter. |
|
| @@ 106-114 (lines=9) @@ | ||
| 103 | * Throws an exception if the argument given does not match the expected set of |
|
| 104 | * values. |
|
| 105 | */ |
|
| 106 | public function setDescription($description) |
|
| 107 | { |
|
| 108 | if (!is_string($description)) { |
|
| 109 | throw new LiftSdkException('Argument must be an instance of string.'); |
|
| 110 | } |
|
| 111 | $this['description'] = $description; |
|
| 112 | ||
| 113 | return $this; |
|
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * Gets the 'description' parameter. |
|