What about the widgets?

To make a class of Widgets, and each method will be a widget? Or for each widget a separate class?
July 9th 19 at 12:50
2 answers
July 9th 19 at 12:52
Solution
Each widget is a separate class inherited from the General class of a Widget.
Yes, also to this bow. View the opinions of others - Kendrick_Schu commented on July 9th 19 at 12:55
July 9th 19 at 12:54
Solution
The single-responsibility principle - for each widget a separate class.

Find more questions by tags MySQLOOPPHP