output = $console; } /** * Execute and make receiver to enable displaying messages date. */ public function execute() { // sometimes, there is no receiver and this is the command which // does all the work $this->output->enableDate(); } /** * Undo the command and make receiver to disable displaying messages date. */ public function undo() { // sometimes, there is no receiver and this is the command which // does all the work $this->output->disableDate(); } }