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.

31 lines
642B

  1. <?php
  2. namespace Lc\SovBundle\Event\Ticket;
  3. use Lc\SovBundle\Doctrine\EntityInterface;
  4. use Lc\SovBundle\Model\Ticket\TicketInterface;
  5. use Symfony\Contracts\EventDispatcher\Event;
  6. /**
  7. * class EntityEvent.
  8. *
  9. * @author Simon Vieille <simon@deblan.fr>
  10. */
  11. class TicketEvent extends Event
  12. {
  13. const NEW_TICKET_EVENT = 'ticket_event.new_ticket';
  14. const NEW_MESSAGE_EVENT = 'ticket_event.new_message';
  15. protected TicketInterface $ticket;
  16. public function __construct(TicketInterface $ticket)
  17. {
  18. $this->ticket = $ticket;
  19. }
  20. public function getTicket(): TicketInterface
  21. {
  22. return $this->ticket;
  23. }
  24. }