<?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;
    }
}
