<?php

namespace App\Entity;

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

/**
 * @ORM\Entity(repositoryClass=DroitPortailRepository::class)
 * @ORM\Table(schema="sav")
 */
class DroitPortail
{
    /**
     * @ORM\Id
     * @ORM\GeneratedValue
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="string", length=50)
     */
    private $libelle;

    /**
     * @ORM\ManyToOne(targetEntity=GroupeDroitPortail::class, inversedBy="droitPortails")
     * @ORM\JoinColumn(nullable=false, name="idgroupe_droit_portail")
     */
    private $groupe_droit;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getLibelle(): ?string
    {
        return $this->libelle;
    }

    public function setLibelle(string $libelle): self
    {
        $this->libelle = $libelle;

        return $this;
    }

    public function getGroupeDroit(): ?GroupeDroitPortail
    {
        return $this->groupe_droit;
    }

    public function setGroupeDroit(?GroupeDroitPortail $groupe_droit): self
    {
        $this->groupe_droit = $groupe_droit;

        return $this;
    }
}
