@@ -105,6 +105,8 @@ public function createMessage(TicketInterface $ticket = null)
105105 *
106106 * @param TicketInterface $ticket
107107 * @param TicketMessageInterface $message
108+ *
109+ * @return TicketInterface
108110 */
109111 public function updateTicket (TicketInterface $ ticket , TicketMessageInterface $ message = null )
110112 {
@@ -116,12 +118,14 @@ public function updateTicket(TicketInterface $ticket, TicketMessageInterface $me
116118 $ this ->objectManager ->persist ($ message );
117119 }
118120 $ this ->objectManager ->flush ();
121+
122+ return $ ticket ;
119123 }
120124
121125 /**
122126 * Delete a ticket from the database.
123127 *
124- * @param TicketInterface $ticket
128+ * @param TicketInterface $ticket*
125129 */
126130 public function deleteTicket (TicketInterface $ ticket )
127131 {
@@ -176,9 +180,13 @@ public function findTicketsBy(array $criteria)
176180 }
177181
178182 /**
179- * {@inheritdoc}
183+ * @param UserManagerInterface $userManager
184+ * @param int $ticketStatus
185+ * @param int $ticketPriority
186+ *
187+ * @return mixed
180188 */
181- public function getTicketListQuery (UserManagerInterface $ userManager , $ ticketStatus , $ ticketPriority = null )
189+ public function getTicketList (UserManagerInterface $ userManager , $ ticketStatus , $ ticketPriority = null )
182190 {
183191 $ query = $ this ->ticketRepository ->createQueryBuilder ('t ' )
184192// ->select($this->ticketClass.' t')
0 commit comments