Skip to content

static update data by id#21

Open
goigarg wants to merge 8 commits into
10quality:v1.0from
goigarg:patch-1
Open

static update data by id#21
goigarg wants to merge 8 commits into
10quality:v1.0from
goigarg:patch-1

Conversation

@goigarg
Copy link
Copy Markdown

@goigarg goigarg commented Apr 8, 2022

No description provided.

Comment thread src/Traits/DataModelTrait.php Outdated
* @param array $data
* @return bool
*/
public static function updateData($id, $data)
Copy link
Copy Markdown
Collaborator

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)
Copy link
Copy Markdown
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants