/**
  * @param Ticket $ticket
  *
  * @return UpdateTicketCommand
  */
 public function createUpdateTicketCommand(Ticket $ticket)
 {
     $command = new UpdateTicketCommand();
     $command->id = $ticket->getId();
     $command->key = (string) $ticket->getKey();
     $command->subject = $ticket->getSubject();
     $command->description = $ticket->getDescription();
     $command->reporter = $ticket->getReporter();
     $command->assignee = $ticket->getAssignee();
     $command->status = $ticket->getStatus();
     $command->priority = $ticket->getPriority();
     $command->branch = $ticket->getBranch();
     $command->source = $ticket->getSource();
     $command->tags = $ticket->getTags();
     return $command;
 }