Skip to content
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

Function Naming #3

Closed
uyab opened this issue Aug 25, 2016 · 2 comments
Closed

Function Naming #3

uyab opened this issue Aug 25, 2016 · 2 comments
Assignees

Comments

@uyab
Copy link
Contributor

uyab commented Aug 25, 2016

Rename:

  • getProvinces()
  • getProvincesPaginate()
  • ...

To:

  • allProvinces()
  • paginateProvinces()
  • ...

This will make this package more consistent with Laravel, e.g: $model->all() and $model->paginate()

@uyab
Copy link
Contributor Author

uyab commented Aug 25, 2016

And also:

  • getProvince($id) -> findProvince($id)
  • getCity($id) -> findCity($id)
  • ....

@adhatama adhatama self-assigned this Aug 25, 2016
@adhatama
Copy link
Contributor

Nice! I'm having a tough time figuring out the names before

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

No branches or pull requests

2 participants