/**
  * @param string              $id
  * @param TicketUpdateRequest $ticketRequest
  *
  * @return Ticket
  */
 public function patch($id, TicketUpdateRequest $ticketRequest)
 {
     $ticket = $this->service->find($id);
     foreach ($ticketRequest->getData()->getAttributes() as $key => $value) {
         $setterName = "set{$key}";
         $ticket->{$setterName}($value);
     }
     return $this->service->update($ticket);
 }
 /**
  * @param Ticket $ticket
  *
  * @return Ticket
  */
 public function put(Ticket $ticket)
 {
     return $this->service->update($ticket);
 }