Exemplo n.º 1
0
 /**
  * @param Command $command
  *
  * @return $this
  */
 public function addCommand(Command $command)
 {
     $data = $this->prefix . $command->getCommand();
     $command->setCommand($data);
     if (null === $command->getTimeout()) {
         $command->setTimeout($this->getTimeout());
     }
     $this->commands[] = $command;
     return $this;
 }