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.
|
- <?php
-
- namespace Lc\SovBundle\Factory\Ticket;
-
- use App\Entity\Ticket\Ticket;
- use Lc\SovBundle\Factory\AbstractFactory;
-
- class TicketFactory extends AbstractFactory implements TicketFactoryInterface
- {
- protected TicketMessageFactory $ticketMessageFactory;
-
- public function __construct(TicketMessageFactory $ticketMessageFactory)
- {
- $this->ticketMessageFactory = $ticketMessageFactory;
- }
-
- public function create()
- {
- $ticket = new Ticket();
-
- $ticketMessage = $this->ticketMessageFactory->create() ;
- $ticket->addTicketMessage($ticketMessage) ;
-
- return $ticket;
- }
-
- }
|