<?phpnamespace App\Entity;use App\Repository\DroitRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=DroitRepository::class) */class Droit{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $drt_droit; /** * @ORM\Column(type="boolean") */ private $drt_lire; /** * @ORM\Column(type="boolean") */ private $drt_ecrire; /** * @ORM\Column(type="boolean") */ private $drt_suppression; /** * @ORM\ManyToOne(targetEntity=Page::class, inversedBy="droits", fetch="EAGER") * @ORM\JoinColumn(nullable=false) */ private $drt_page; /** * @ORM\ManyToOne(targetEntity=CentreFonction::class, inversedBy="droits") * @ORM\JoinColumn(nullable=false) */ private $drt_fonction; public function getId(): ?int { return $this->id; } public function isDrtLire(): ?bool { return $this->drt_lire; } public function setDrtLire(bool $drt_lire): self { $this->drt_lire = $drt_lire; return $this; } public function isDrtEcrire(): ?bool { return $this->drt_ecrire; } public function setDrtEcrire(bool $drt_ecrire): self { $this->drt_ecrire = $drt_ecrire; return $this; } public function isDrtSuppression(): ?bool { return $this->drt_suppression; } public function setDrtSuppression(bool $drt_suppression): self { $this->drt_suppression = $drt_suppression; return $this; } public function getDrtPage(): ?Page { return $this->drt_page; } public function setDrtPage(?Page $drt_page): self { $this->drt_page = $drt_page; return $this; } public function getDrtFonction(): ?CentreFonction { return $this->drt_fonction; } public function setDrtFonction(?CentreFonction $drt_fonction): self { $this->drt_fonction = $drt_fonction; return $this; } public function getDrtDroit(): ?string { return $this->drt_droit; } public function setDrtDroit(?string $drt_droit): self { $this->drt_droit = $drt_droit; return $this; }}