populateTicket($ticket); $ticketMessage->populateUser($user); $ticketMessage->message = $message; return $ticketMessage; } public function createTicketMessage(Ticket $ticket, User $user, string $message): TicketMessage { $ticketMessage = $this->instanciateTicketMessage($ticket, $user, $message); $this->create($ticketMessage); return $ticketMessage; } }