https://github.com/kazemmdev/solid
https://github.com/kazemmdev/solid
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kazemmdev/solid
- Owner: kazemmdev
- Created: 2022-02-21T09:39:49.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-21T09:40:25.000Z (about 3 years ago)
- Last Synced: 2025-01-08T15:57:02.968Z (4 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SOLID Principles
SOLID As Robert Martin introduced them in the book
[_Agile Software Development, Principles, Patterns, and Practices_](https://refactoring.guru/principles-book) is five
design principles intended to make software design more understandable, flexible and maintainable.## Single Responsibility Principles
> A class should have just one reason to change.
## Open/Closed Principle
> Classes should be open for extension but closed for modification.
## Liskov Substitution Principle
> When extending a class, remember that you should be
able to pass objects of the subclass in place of objects of
the parent class without breaking the client code.## Interface Segregation Principle
> Clients shouldn’t be forced to depend on methods they do not use.
## Dependency Inversion Principle
> High-level classes shouldn’t depend on low-level classes.
Both should depend on abstractions. Abstractions
shouldn’t depend on details. Details should depend on
abstractions.