mirror of
https://github.com/jupeter/clean-code-php.git
synced 2025-09-25 13:39:04 +02:00
Merge pull request #191 from celyes/master
This commit is contained in:
@@ -1517,7 +1517,7 @@ The `final` should be used whenever possible:
|
|||||||
|
|
||||||
1. It prevents uncontrolled inheritance chain.
|
1. It prevents uncontrolled inheritance chain.
|
||||||
2. It encourages [composition](#prefer-composition-over-inheritance).
|
2. It encourages [composition](#prefer-composition-over-inheritance).
|
||||||
3. It encourages the [Single Responsibility Pattern](#single-responsibility-principle-srp).
|
3. It encourages the [Single Responsibility Principle](#single-responsibility-principle-srp).
|
||||||
4. It encourages developers to use your public methods instead of extending the class to get access on protected ones.
|
4. It encourages developers to use your public methods instead of extending the class to get access on protected ones.
|
||||||
5. It allows you to change your code without any break of applications that use your class.
|
5. It allows you to change your code without any break of applications that use your class.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user