Yes, it's a great point. I would have some if statements in there. My code tends to have a lot of those. I appreciate you writing these in such a short format because it's difficult to understand SOLID as a whole in large chunks
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.