public function setCommand(Command $cmd)
 {
     $this->command = $cmd->__toString();
 }