您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

22 行
573B

  1. <?php
  2. namespace Lc\SovBundle\Factory\Ticket;
  3. use App\Entity\Ticket\TicketMessage;
  4. use Lc\SovBundle\Factory\AbstractFactory;
  5. use Lc\SovBundle\Model\Ticket\TicketInterface;
  6. use Lc\SovBundle\Model\Ticket\TicketMessageInterface;
  7. class TicketMessageFactory extends AbstractFactory implements TicketMessageFactoryInterface
  8. {
  9. public function create(TicketInterface $ticket): TicketMessageInterface
  10. {
  11. $ticketMessage = new TicketMessage();
  12. $ticketMessage->setTicket($ticket);
  13. $ticketMessage->setStatus(1);
  14. return $ticketMessage;
  15. }
  16. }