How to avoid implementing methods repeatedly for identical classes?
You could create a class, that inherits IListService, and use it as a base class for your ListWrapper classes.
You could create a class, that inherits IListService, and use it as a base class for your ListWrapper classes.
Interfaces are public “contracts” whenever you want to be able to swap the implementation or give someone the flexibility to use another implementation you should use interfaces. Example: You want to store something so you can load it later. You could use something like public function save(MySQL $db, array $data); But this is not very … Read more