Closed gohguanlin closed 1 year ago
Identified Single Responsibility Principle violated for my QuarterlyReport Class. Currently QuarterlyReport Controller is responsible for mainly:
Therefore there are 4 reasons to change if modifications is required in the class:
As a result, the responsibilities should be split into 4 different classes namely:
DataProvider
DataCompiler
DataAnalysis
ReportGenerator
Amended class diagram for QuarterlyReport. The new classes are split according to their responsibilities.
Reviewed and acknowledged by team members:
Completed and closed on 16/3
TODO: Principle 1 of SOLID principle.
To be completed on