Making report for different periods (monthly, weekly statistics).
Also should display report on html,clear text etc. (hence different type of output).
What would be an efficient way to design/organize classes so that the system is flexible.
So for example there is factory method that determines if it is monthly weekly etc.
There is factory method to build the output etc.
Should I create abstract class for a statistic
and then extend for weekly stats with html out
weekly stats for clear text output
The idea is to be flexible as to adding for example yearly view or other means of showing the report hte whole stuff is easily expandable.
Any comments - design idea woulld be great.
Thanks for spending time reading this.
btw using php5