Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

24 rindas
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. }