mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 01:32:22 +01:00
Spelling fix in README
This commit is contained in:
parent
fc78f0636c
commit
22fc211c14
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
To encapsulate invocation and decoupling.
|
To encapsulate invocation and decoupling.
|
||||||
|
|
||||||
We have an Invoker and a Receiver. This pattern use a "Command" to delegate the method call against the Receiver and presents the same method "execute".
|
We have an Invoker and a Receiver. This pattern uses a "Command" to delegate the method call against the Receiver and presents the same method "execute".
|
||||||
Therefore, the Invoker just knows to call "execute" to process the Command of the client. The Receiver is decoupled from the Invoker.
|
Therefore, the Invoker just knows to call "execute" to process the Command of the client. The Receiver is decoupled from the Invoker.
|
||||||
|
|
||||||
The second aspect of ths pattern is the undo(), which undoes the method execute().
|
The second aspect of this pattern is the undo(), which undoes the method execute().
|
||||||
Command can also be aggregated to combine more complex commands with minimum copy-paste and relying on composition over inheritance.
|
Command can also be aggregated to combine more complex commands with minimum copy-paste and relying on composition over inheritance.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
Loading…
x
Reference in New Issue
Block a user