command = $cmd; } public function run() { // here is a key feature of the invoker // the invoker is the same whatever is the command $this->command->execute(); } }