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.
|
- <?php
-
- namespace Lc\SovBundle\Factory\Ticket;
-
- use Lc\SovBundle\Container\Ticket\TicketMessageContainer;
- use Lc\SovBundle\Factory\AbstractFactory;
- use Lc\SovBundle\Model\Ticket\TicketInterface;
- use Lc\SovBundle\Model\Ticket\TicketMessageInterface;
-
- class TicketMessageFactory extends AbstractFactory implements TicketMessageFactoryInterface
- {
- public function create(TicketInterface $ticket): TicketMessageInterface
- {
- $class = TicketMessageContainer::getEntityFqcn();
- $ticketMessage = new $class;
-
- $ticketMessage->setTicket($ticket);
- $ticketMessage->setStatus(1);
-
- return $ticketMessage;
- }
- }
|