命令在 PHP 中的实现
Command is behavioral design pattern that converts requests or simple operations into objects.
The conversion allows deferred or remote execution of commands, storing command history, etc.
在 PHP 中使用模式
Usage examples: The Command pattern is pretty common in PHP code. It's used for queueing tasks, tracking the history of executed tasks and performing the "undo".