mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-06 14:06:34 +02:00
Merge pull request #822 from BBBThunda/fixLiskovTypo
Fix typo in SOLID Liskov subheading
This commit is contained in:
@@ -51,7 +51,7 @@ the parent class’ type definitions.” Or, in Robert C. Martin’s words, “S
|
||||
types.”
|
||||
|
||||
For example, if we have a `FileInterface` interface which defines an `embed()` method, and we have `Audio` and `Video`
|
||||
classes which both implement the `embed()` method, then we can expect that the usage of the `embed()` method will always
|
||||
classes which both implement the `FileInterface` interface, then we can expect that the usage of the `embed()` method will always
|
||||
do the thing that we intend. If we later create a `PDF` class or a `Gist` class which implement the `FileInterface`
|
||||
interface, we will already know and understand what the `embed()` method will do. The largest benefit of this approach
|
||||
is that we have the ability to build flexible and easily-configurable programs, because when we change one object of a
|
||||
|
Reference in New Issue
Block a user