Completed
Push — master ( 07ff5e...48ef71 )
by Colin
01:15
created
src/Support/Model.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      *
140 140
      * @param  string  $key
141 141
      * @param  mixed  $value
142
-     * @return mixed
142
+     * @return Model
143 143
      */
144 144
     public function setAttribute($key, $value)
145 145
     {
@@ -183,16 +183,25 @@  discard block
 block discarded – undo
183 183
         return $this;
184 184
     }
185 185
 
186
+    /**
187
+     * @param string $key
188
+     */
186 189
     public function attributeExists($key)
187 190
     {
188 191
         return array_key_exists($key, $this->attributes);
189 192
     }
190 193
 
194
+    /**
195
+     * @param string $key
196
+     */
191 197
     public function isRelationshipAttribute($key)
192 198
     {
193 199
         return array_key_exists($key, $this->relationships);
194 200
     }
195 201
 
202
+    /**
203
+     * @param string $key
204
+     */
196 205
     public function unsetAttribute($key)
197 206
     {
198 207
         $this->setAttribute($key, '');
Please login to merge, or discard this patch.