@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * |
129 | 129 | * @param string $key |
130 | 130 | * @param mixed $value |
131 | - * @return mixed |
|
131 | + * @return Model |
|
132 | 132 | */ |
133 | 133 | public function setAttribute($key, $value) |
134 | 134 | { |
@@ -158,11 +158,17 @@ discard block |
||
158 | 158 | return $this; |
159 | 159 | } |
160 | 160 | |
161 | + /** |
|
162 | + * @param string $key |
|
163 | + */ |
|
161 | 164 | public function attributeExists($key) |
162 | 165 | { |
163 | 166 | return array_key_exists($key, $this->attributes); |
164 | 167 | } |
165 | 168 | |
169 | + /** |
|
170 | + * @param string $key |
|
171 | + */ |
|
166 | 172 | public function unsetAttribute($key) |
167 | 173 | { |
168 | 174 | $this->setAttribute($key, ''); |