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