What about the widgets?
To make a class of Widgets, and each method will be a widget? Or for each widget a separate class?
2 answers
Each widget is a separate class inherited from the General class of a Widget.
The single-responsibility principle - for each widget a separate class.
Find more questions by tags MySQLOOPPHP