I am having a scenario where
- A user creates a page.
- User send the page for reviews.
- We have multiple types of review like global, regional and translation review.
I am already having a page model.
So at page model i should write one method like get_reviews
with a type
parameter
Vs
i should define 3 individual methods like get_global_reviews
, get_regional_reviews
, get_translation_reviews
.
I do not have much knowledge on design patterns. I just want some suggestion which is the best way to implement.
Aucun commentaire:
Enregistrer un commentaire