SRP is violated when there is more than one “reason to change”
- Changing the validation is a reason to change
- Changing the business rules is a reason to change
The class does too much and breaks SRP.
SRP is violated when there is more than one “reason to change”
The class does too much and breaks SRP.