<?php
declare(strict_types=1);

namespace App\Entity\Booking;

//use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
use Doctrine\ORM\Mapping as ORM;

/**
 * @todo : A la suite de la migration, il faut supprimer le nom de la table pour avoir une table ExamenRecur, et supprimer l'attribut discr.
 *
 * Classe ... qui ...
 */
//#[Auditable]
#[ORM\Table(name: 'BookingRecur')]
#[ORM\Entity]
class ExamenRecur extends AbstractBookingRecur
{
    #[ORM\Column(length: 255, nullable: false)]
    private string $discr = 'examen';

    #[ORM\ManyToOne(inversedBy: 'eventRecur')]
    private Examen $event;

    public function getDiscr(): ?string
    {
        return $this->discr;
    }

    public function setDiscr(string $discr): self
    {
        $this->discr = $discr;

        return $this;
    }

    public function getEvent(): ?Examen
    {
        return $this->event;
    }

    public function setEvent(?Examen $event): self
    {
        $this->event = $event;

        return $this;
    }
}