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\Event\Ticket;
-
- use Lc\SovBundle\Doctrine\EntityInterface;
- use Lc\SovBundle\Model\Ticket\TicketInterface;
- use Symfony\Contracts\EventDispatcher\Event;
-
- /**
- * class EntityEvent.
- *
- * @author Simon Vieille <simon@deblan.fr>
- */
- class TicketEvent extends Event
- {
- const NEW_TICKET_EVENT = 'ticket_event.new_ticket';
- const NEW_MESSAGE_EVENT = 'ticket_event.new_message';
-
- protected TicketInterface $ticket;
-
- public function __construct(TicketInterface $ticket)
- {
- $this->ticket = $ticket;
- }
-
- public function getTicket(): TicketInterface
- {
- return $this->ticket;
- }
- }
|