-
Notifications
You must be signed in to change notification settings - Fork 4
static update data by id #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v1.0
Are you sure you want to change the base?
Conversation
src/Traits/DataModelTrait.php
Outdated
* @return bool | ||
*/ | ||
public static function updateData($id, $data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to look for a more generic method name. Maybe ::modify()
. Also, needs to follow comments standard, same as the other methods. Unit testing is missing.
* Destroy Model statically | ||
*/ | ||
public static function destroy($id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missin comments standard, same as the other methods and unit testing.
No description provided.