src/Entity/Referent.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReferentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Uid\Uuid;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ReferentRepository::class)
  8.  */
  9. class Referent
  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="string", length=255, nullable=true)
  35.      */
  36.     private $civilite;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $nom;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $prenom;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $email;
  49.     /**
  50.      * @ORM\Column(type="datetime_immutable", nullable=true)
  51.      */
  52.     private $createdAt;
  53.     /**
  54.      * @ORM\Column(type="datetime", nullable=true)
  55.      */
  56.     private $updatedAt;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $src;
  61.     /**
  62.      * @ORM\Column(type="text", nullable=true)
  63.      */
  64.     private $alt;
  65.     /**
  66.      * @ORM\Column(type="string", length=255, nullable=true)
  67.      */
  68.     private $title;
  69.     /**
  70.      * @ORM\Column(type="string", length=255, nullable=true)
  71.      */
  72.     private $bureau;
  73.     /**
  74.      * @ORM\Column(type="string", length=255, nullable=true)
  75.      */
  76.     private $genre;
  77.     /**
  78.      * @ORM\Column(type="integer", nullable=true)
  79.      */
  80.     private $listorder;
  81.     /**
  82.      * @ORM\ManyToOne(targetEntity=Direction::class, inversedBy="referents")
  83.      */
  84.     private $direction;
  85.     public function __construct()
  86.     {
  87.         $this->uuid Uuid::v4();
  88.     }
  89.     public function getId(): ?int
  90.     {
  91.         return $this->id;
  92.     }
  93.     public function getUuid(): ?string
  94.     {
  95.         return $this->uuid;
  96.     }
  97.     public function setUuid(?string $uuid): self
  98.     {
  99.         $this->uuid $uuid;
  100.         return $this;
  101.     }
  102.     public function getToken(): ?string
  103.     {
  104.         return $this->token;
  105.     }
  106.     public function setToken(?string $token): self
  107.     {
  108.         $this->token $token;
  109.         return $this;
  110.     }
  111.     public function getSlug(): ?string
  112.     {
  113.         return $this->slug;
  114.     }
  115.     public function setSlug(?string $slug): self
  116.     {
  117.         $this->slug $slug;
  118.         return $this;
  119.     }
  120.     public function isStatut(): ?bool
  121.     {
  122.         return $this->statut;
  123.     }
  124.     public function setStatut(?bool $statut): self
  125.     {
  126.         $this->statut $statut;
  127.         return $this;
  128.     }
  129.     public function getCivilite(): ?string
  130.     {
  131.         return $this->civilite;
  132.     }
  133.     public function setCivilite(?string $civilite): self
  134.     {
  135.         $this->civilite $civilite;
  136.         return $this;
  137.     }
  138.     public function getNom(): ?string
  139.     {
  140.         return $this->nom;
  141.     }
  142.     public function setNom(?string $nom): self
  143.     {
  144.         $this->nom $nom;
  145.         return $this;
  146.     }
  147.     public function getPrenom(): ?string
  148.     {
  149.         return $this->prenom;
  150.     }
  151.     public function setPrenom(?string $prenom): self
  152.     {
  153.         $this->prenom $prenom;
  154.         return $this;
  155.     }
  156.     public function getEmail(): ?string
  157.     {
  158.         return $this->email;
  159.     }
  160.     public function setEmail(?string $email): self
  161.     {
  162.         $this->email $email;
  163.         return $this;
  164.     }
  165.     public function getCreatedAt(): ?\DateTimeImmutable
  166.     {
  167.         return $this->createdAt;
  168.     }
  169.     public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  170.     {
  171.         $this->createdAt $createdAt;
  172.         return $this;
  173.     }
  174.     public function getUpdatedAt(): ?\DateTimeInterface
  175.     {
  176.         return $this->updatedAt;
  177.     }
  178.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  179.     {
  180.         $this->updatedAt $updatedAt;
  181.         return $this;
  182.     }
  183.     
  184.     public function getSrc(): ?string
  185.     {
  186.         return $this->src;
  187.     }
  188.     public function setSrc(?string $src): self
  189.     {
  190.         $this->src $src;
  191.         return $this;
  192.     }
  193.     public function getAlt(): ?string
  194.     {
  195.         return $this->alt;
  196.     }
  197.     public function setAlt(?string $alt): self
  198.     {
  199.         $this->alt $alt;
  200.         return $this;
  201.     }
  202.     public function getTitle(): ?string
  203.     {
  204.         return $this->title;
  205.     }
  206.     public function setTitle(?string $title): self
  207.     {
  208.         $this->title $title;
  209.         return $this;
  210.     }
  211.     public function getBureau(): ?string
  212.     {
  213.         return $this->bureau;
  214.     }
  215.     public function setBureau(?string $bureau): self
  216.     {
  217.         $this->bureau $bureau;
  218.         return $this;
  219.     }
  220.     public function getGenre(): ?string
  221.     {
  222.         return $this->genre;
  223.     }
  224.     public function setGenre(?string $genre): self
  225.     {
  226.         $this->genre $genre;
  227.         return $this;
  228.     }
  229.     public function getListorder(): ?int
  230.     {
  231.         return $this->listorder;
  232.     }
  233.     public function setListorder(?int $listorder): self
  234.     {
  235.         $this->listorder $listorder;
  236.         return $this;
  237.     }
  238.     public function getDirection(): ?Direction
  239.     {
  240.         return $this->direction;
  241.     }
  242.     public function setDirection(?Direction $direction): self
  243.     {
  244.         $this->direction $direction;
  245.         return $this;
  246.     }
  247. }