I am building an inventory, where items will be some sort of products.
I have a dilemma in how to write this class in php5, I want to write an abstract class item.
Now, which is a better approach, to write a separate DataManager interface to create and manage items (ex. add/update them into the DB) or to create methods inside the items class?
If you have an example of how to approach this situation feel free to share.