src/Entity/Droit.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DroitRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Uid\Uuid;
  6. /**
  7.  * @ORM\Entity(repositoryClass=DroitRepository::class)
  8.  */
  9. class Droit
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $uuid;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $token;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $slug;
  29.     /**
  30.      * @ORM\Column(type="boolean", nullable=true)
  31.      */
  32.     private $statut false;
  33.     /**
  34.      * @ORM\Column(type="datetime_immutable", nullable=true)
  35.      */
  36.     private $createdAt;
  37.     /**
  38.      * @ORM\Column(type="datetime", nullable=true)
  39.      */
  40.     private $updatedAt;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $titre;
  45.     /**
  46.      * @ORM\Column(type="text", nullable=true)
  47.      */
  48.     private $lien;
  49.     /**
  50.      * @ORM\Column(type="text", nullable=true)
  51.      */
  52.     private $description;
  53.     /**
  54.      * @ORM\Column(type="string", length=255, nullable=true)
  55.      */
  56.     private $nom;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $prenom;
  61.     /**
  62.      * @ORM\Column(type="string", length=255, nullable=true)
  63.      */
  64.     private $email;
  65.     /**
  66.      * @ORM\Column(type="string", length=255, nullable=true)
  67.      */
  68.     private $phone;
  69.     /**
  70.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="droits")
  71.      */
  72.     private $user;
  73.     /**
  74.      * @ORM\Column(type="datetime_immutable", nullable=true)
  75.      */
  76.     private $validedAt;
  77.     /**
  78.      * @ORM\Column(type="boolean", nullable=true)
  79.      */
  80.     private $moderate false;
  81.     /**
  82.      * @ORM\ManyToOne(targetEntity=Direction::class, inversedBy="droits")
  83.      */
  84.     private $direction;
  85.     /**
  86.      * @ORM\ManyToOne(targetEntity=Grade::class, inversedBy="droits")
  87.      */
  88.     private $grade;
  89.     /**
  90.      * @ORM\Column(type="boolean", nullable=true)
  91.      */
  92.     private $fake;
  93.     public function __construct()
  94.     {
  95.         $this->uuid Uuid::v4();
  96.     }
  97.     public function getId(): ?int
  98.     {
  99.         return $this->id;
  100.     }
  101.     public function getUuid(): ?string
  102.     {
  103.         return $this->uuid;
  104.     }
  105.     public function setUuid(?string $uuid): self
  106.     {
  107.         $this->uuid $uuid;
  108.         return $this;
  109.     }
  110.     public function getToken(): ?string
  111.     {
  112.         return $this->token;
  113.     }
  114.     public function setToken(?string $token): self
  115.     {
  116.         $this->token $token;
  117.         return $this;
  118.     }
  119.     public function getSlug(): ?string
  120.     {
  121.         return $this->slug;
  122.     }
  123.     public function setSlug(?string $slug): self
  124.     {
  125.         $this->slug $slug;
  126.         return $this;
  127.     }
  128.     public function isStatut(): ?bool
  129.     {
  130.         return $this->statut;
  131.     }
  132.     public function setStatut(?bool $statut): self
  133.     {
  134.         $this->statut $statut;
  135.         return $this;
  136.     }
  137.     public function getCreatedAt(): ?\DateTimeImmutable
  138.     {
  139.         return $this->createdAt;
  140.     }
  141.     public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  142.     {
  143.         $this->createdAt $createdAt;
  144.         return $this;
  145.     }
  146.     public function getUpdatedAt(): ?\DateTimeInterface
  147.     {
  148.         return $this->updatedAt;
  149.     }
  150.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  151.     {
  152.         $this->updatedAt $updatedAt;
  153.         return $this;
  154.     }
  155.     public function getTitre(): ?string
  156.     {
  157.         return $this->titre;
  158.     }
  159.     public function setTitre(?string $titre): self
  160.     {
  161.         $this->titre $titre;
  162.         return $this;
  163.     }
  164.     public function getLien(): ?string
  165.     {
  166.         return $this->lien;
  167.     }
  168.     public function setLien(?string $lien): self
  169.     {
  170.         $this->lien $lien;
  171.         return $this;
  172.     }
  173.     public function getDescription(): ?string
  174.     {
  175.         return $this->description;
  176.     }
  177.     public function setDescription(?string $description): self
  178.     {
  179.         $this->description $description;
  180.         return $this;
  181.     }
  182.     public function getNom(): ?string
  183.     {
  184.         return $this->nom;
  185.     }
  186.     public function setNom(?string $nom): self
  187.     {
  188.         $this->nom $nom;
  189.         return $this;
  190.     }
  191.     public function getPrenom(): ?string
  192.     {
  193.         return $this->prenom;
  194.     }
  195.     public function setPrenom(?string $prenom): self
  196.     {
  197.         $this->prenom $prenom;
  198.         return $this;
  199.     }
  200.     public function getEmail(): ?string
  201.     {
  202.         return $this->email;
  203.     }
  204.     public function setEmail(?string $email): self
  205.     {
  206.         $this->email $email;
  207.         return $this;
  208.     }
  209.     public function getPhone(): ?string
  210.     {
  211.         return $this->phone;
  212.     }
  213.     public function setPhone(?string $phone): self
  214.     {
  215.         $this->phone $phone;
  216.         return $this;
  217.     }
  218.     public function getUser(): ?User
  219.     {
  220.         return $this->user;
  221.     }
  222.     public function setUser(?User $user): self
  223.     {
  224.         $this->user $user;
  225.         return $this;
  226.     }
  227.     public function getValidedAt(): ?\DateTimeImmutable
  228.     {
  229.         return $this->validedAt;
  230.     }
  231.     public function setValidedAt(?\DateTimeImmutable $validedAt): self
  232.     {
  233.         $this->validedAt $validedAt;
  234.         return $this;
  235.     }
  236.     public function isModerate(): ?bool
  237.     {
  238.         return $this->moderate;
  239.     }
  240.     public function setModerate(?bool $moderate): self
  241.     {
  242.         $this->moderate $moderate;
  243.         return $this;
  244.     }
  245.     public function getDirection(): ?Direction
  246.     {
  247.         return $this->direction;
  248.     }
  249.     public function setDirection(?Direction $direction): self
  250.     {
  251.         $this->direction $direction;
  252.         return $this;
  253.     }
  254.     public function getGrade(): ?Grade
  255.     {
  256.         return $this->grade;
  257.     }
  258.     public function setGrade(?Grade $grade): self
  259.     {
  260.         $this->grade $grade;
  261.         return $this;
  262.     }
  263.     public function isFake(): ?bool
  264.     {
  265.         return $this->fake;
  266.     }
  267.     public function setFake(?bool $fake): self
  268.     {
  269.         $this->fake $fake;
  270.         return $this;
  271.     }
  272. }