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.

24 lines
538B

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