theThe following is my code and I hope anyone who has been doing PHP can help to review or comment for any improvements or weaknesses on my code.
I want to develop my style of code in which copy-and paste is minimum and functionality expandability is rich. for eg :For example, the execute()execute()
function in UserDBthe UserDB
class..basically is basically the same function and can be used widespread in many diff db class, so do. Do I need to copy and paste the code again or should I just moved this piece of code to abstract class ?
next is the UserFactory classUserFactory
class
next is my UserDB classUserDB
class
Next is my Database abstract class.Database
abstract class
Last is my User object classUser
object class