Manager/TicketManager.php
public function createTicket()
    {
        /* @var TicketInterface $ticket */
        $ticket = new $this->ticketClass();
        $ticket->setPriority(TicketMessageInterface::PRIORITY_MEDIUM);
        $ticket->setStatus(TicketMessageInterface::STATUS_OPEN);

        return $ticket;
    }
public function createTicket()
    {
        /* @var TicketInterface $ticket */
        $ticket = new $this->ticketClass();
        $ticket->setPriority(TicketMessageInterface::PRIORITY_MEDIUM);
        $ticket->setStatus(TicketMessageInterface::STATUS_OPEN);

        return $ticket;
    }
public function createTicket ( ) { /* @var TicketInterface $ticket */ $ ticket = new $ this -> ticketClass ( ) ; $ ticket -> setPriority ( TicketMessageInterface :: PRIORITY_MEDIUM ) ; $ ticket -> setStatus ( TicketMessageInterface :: STATUS_OPEN ) ; return $ ticket ; }
Create a new instance of Ticket entity.

@return TicketInterface
Create a new instance of Ticket entity .