mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-08 16:06:31 +02:00
some typo and comments
This commit is contained in:
@@ -8,7 +8,7 @@ namespace DesignPatterns\Command;
|
||||
* Purpose: 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 use the same method "execute".
|
||||
* method call against the Receiver and presents the same method "execute".
|
||||
* Therefore, the Invoker just know to call "execute" to process the Command of
|
||||
* the client. The Receiver is decoupled from the Invoker
|
||||
*
|
||||
@@ -28,7 +28,7 @@ interface Command
|
||||
|
||||
/**
|
||||
* this is the most important method in the Command pattern,
|
||||
* The Receiver go in the constructor.
|
||||
* The Receiver goes in the constructor.
|
||||
*/
|
||||
public function execute();
|
||||
}
|
||||
|
Reference in New Issue
Block a user