<?php

declare(strict_types=1);

namespace App\Entity\Booking;

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

/**
 * TODO: documenter.
 *
 * @todo : A la suite de la migration, il faut supprimer le nom de la table pour avoir une table EducationalProjectRecur, et supprimer l'attribut discr.
 */
// #[Auditable]
#[ApiResource(operations: [])]
#[ORM\Entity]
class EducationalProjectRecur extends AbstractBookingRecur
{
    #[ORM\ManyToOne(inversedBy: 'eventRecur')]
    private ?EducationalProject $event = null;

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

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

        return $this;
    }
}
