You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TicketMessageFactory.php 643B

3 年之前
3 年之前
3 年之前
12345678910111213141516171819202122
  1. <?php
  2. namespace Lc\SovBundle\Factory\Ticket;
  3. use Lc\SovBundle\Container\Ticket\TicketMessageContainer;
  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. $class = TicketMessageContainer::getEntityFqcn();
  12. $ticketMessage = new $class;
  13. $ticketMessage->setTicket($ticket);
  14. $ticketMessage->setStatus(1);
  15. return $ticketMessage;
  16. }
  17. }