some typo and comments

This commit is contained in:
Trismegiste
2013-05-11 22:18:12 +02:00
parent 9238d294c5
commit 8120aae5a7
7 changed files with 12 additions and 11 deletions

View File

@@ -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();
}