Courses

SOLID Code in Laravel

L: Liskov Substitution Principle - Type-Hint Everything

Previous: O: Open-Closed Principle - Eloquent Attribute with Salary Calculator
avatar

Thank you for this great course !

I would suggest creating seperate interface for dealing with format, So only interested classes can implement it, and we don't have classes with methods doesn't interest in.

Maybe the same thing for the bonus issue.

👍 3
🥳 1
avatar
You can use Markdown
avatar

Did you violate Open-Close Principle if you change interface?

avatar
You can use Markdown
avatar
You can use Markdown