src/Entity/Droit.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DroitRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DroitRepository::class)
  7.  */
  8. class Droit
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $drt_droit;
  20.     /**
  21.      * @ORM\Column(type="boolean")
  22.      */
  23.     private $drt_lire;
  24.     /**
  25.      * @ORM\Column(type="boolean")
  26.      */
  27.     private $drt_ecrire;
  28.     /**
  29.      * @ORM\Column(type="boolean")
  30.      */
  31.     private $drt_suppression;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Page::class, inversedBy="droits", fetch="EAGER")
  34.      * @ORM\JoinColumn(nullable=false)
  35.      */
  36.     private $drt_page;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=CentreFonction::class, inversedBy="droits")
  39.      * @ORM\JoinColumn(nullable=false)
  40.      */
  41.     private $drt_fonction;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function isDrtLire(): ?bool
  47.     {
  48.         return $this->drt_lire;
  49.     }
  50.     public function setDrtLire(bool $drt_lire): self
  51.     {
  52.         $this->drt_lire $drt_lire;
  53.         return $this;
  54.     }
  55.     public function isDrtEcrire(): ?bool
  56.     {
  57.         return $this->drt_ecrire;
  58.     }
  59.     public function setDrtEcrire(bool $drt_ecrire): self
  60.     {
  61.         $this->drt_ecrire $drt_ecrire;
  62.         return $this;
  63.     }
  64.     public function isDrtSuppression(): ?bool
  65.     {
  66.         return $this->drt_suppression;
  67.     }
  68.     public function setDrtSuppression(bool $drt_suppression): self
  69.     {
  70.         $this->drt_suppression $drt_suppression;
  71.         return $this;
  72.     }
  73.     public function getDrtPage(): ?Page
  74.     {
  75.         return $this->drt_page;
  76.     }
  77.     public function setDrtPage(?Page $drt_page): self
  78.     {
  79.         $this->drt_page $drt_page;
  80.         return $this;
  81.     }
  82.     public function getDrtFonction(): ?CentreFonction
  83.     {
  84.         return $this->drt_fonction;
  85.     }
  86.     public function setDrtFonction(?CentreFonction $drt_fonction): self
  87.     {
  88.         $this->drt_fonction $drt_fonction;
  89.         return $this;
  90.     }
  91.     public function getDrtDroit(): ?string
  92.     {
  93.         return $this->drt_droit;
  94.     }
  95.     public function setDrtDroit(?string $drt_droit): self
  96.     {
  97.         $this->drt_droit $drt_droit;
  98.         return $this;
  99.     }
  100. }