<?php
namespace App\Entity;
use App\Repository\DroitInvisibleRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DroitInvisibleRepository::class)
*/
class DroitInvisible
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $visible;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="droitInvisibles")
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity=Droit::class, inversedBy="droitInvisibles")
*/
private $droit;
public function getId(): ?int
{
return $this->id;
}
public function isVisible(): ?bool
{
return $this->visible;
}
public function setVisible(?bool $visible): self
{
$this->visible = $visible;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getDroit(): ?Droit
{
return $this->droit;
}
public function setDroit(?Droit $droit): self
{
$this->droit = $droit;
return $this;
}
}