DEV Community

Discussion on: Becoming a better Laravel developer by using the SOLID design principles. Part 2

Collapse
 
shamshadzaheer profile image
Shamshad Zaheer

In the PaymentFactory class, we are using the same if else statements to manage different payments. Don't you think we are breaking the rule only with implementing the logic with a different wayt?

Collapse
 
abrardev99 profile image
Abrar Ahmad

Good question please see above
comment by @connor leech