I would like to receive suggestions from the community about this question:
What's a good pattern to use to name query methods in PHP?
Examples below:
// I want to get the users count from Users Table. Should I use this name?
public function getCountUsers()
{
//code here
}
// I want to get all users from Users Table. Should I use this name?
public function getAllUsers()
{
//code here
}
If you guys have a great idea or good experiences naming query methods, I would appreciate to receive some tips about it!
Thanks
Aucun commentaire:
Enregistrer un commentaire