<?php

namespace App\Entity;

use App\Repository\EvenementLieuTypePlanificationRepository;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass=EvenementLieuTypePlanificationRepository::class)
 * @ORM\Table(schema="sav")
 */
class EvenementLieuTypePlanification
{

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity=EvenementLieu::class, inversedBy="evenementLieuTypePlanifications")
     * @ORM\JoinColumn(nullable=false, name="idevenement_lieu")
     */
    private $evenement_lieu;

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity=TypePlanification::class, inversedBy="evenementLieuTypePlanifications")
     * @ORM\JoinColumn(nullable=false, name="idtype_planification")
     */
    private $type_planification;

    public function getEvenementLieu(): ?EvenementLieu
    {
        return $this->evenement_lieu;
    }

    public function setEvenementLieu(?EvenementLieu $evenement_lieu): self
    {
        $this->evenement_lieu = $evenement_lieu;

        return $this;
    }

    public function getTypePlanification(): ?TypePlanification
    {
        return $this->type_planification;
    }

    public function setTypePlanification(?TypePlanification $type_planification): self
    {
        $this->type_planification = $type_planification;

        return $this;
    }
}
