src/Entity/DemandeInformation.php line 24

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * Copyright (C) Office National de Publication et de Communication - All Rights Reserved
  5.  *
  6.  * Unauthorized copying of this file, via any medium is strictly prohibited by law
  7.  * This file is proprietary and confidential
  8.  */
  9. namespace App\Entity;
  10. use App\Entity\Common\IdTrait;
  11. use App\Validator\Constraints as AppAssert;
  12. use DateTime;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use Symfony\Component\Validator\Constraints as Assert;
  15. /**
  16.  * @ORM\Entity(repositoryClass="App\Repository\DemandeInformationRepository")
  17.  * @ORM\Table(name="demande_information")
  18.  */
  19. class DemandeInformation
  20. {
  21.     use IdTrait;
  22.     /** @ORM\Column(type="datetime", nullable=false) */
  23.     private $date;
  24.     /** @ORM\Column(type="string", nullable=true, length=50) */
  25.     private $sujet;
  26.     /** @ORM\Column(type="string", nullable=true, length=50) */
  27.     private $interlocuteurCivilite;
  28.     /** @ORM\Column(type="string", nullable=true, length=100) */
  29.     private $interlocuteurNom;
  30.     /** @ORM\Column(type="string", nullable=true, length=50) */
  31.     private $interlocuteurPrenom;
  32.     /** @ORM\Column(type="string", nullable=true, length=50) */
  33.     private $interlocuteurTelephone;
  34.     /**
  35.      * @ORM\Column(type="string", nullable=true, length=100)
  36.      * @Assert\Email
  37.      */
  38.     private $interlocuteurEmail;
  39.     /** @ORM\Column(type="string", nullable=true, length=50) */
  40.     private $accueilliCivilite;
  41.     /** @ORM\Column(type="string", nullable=true, length=100) */
  42.     private $accueilliNom;
  43.     /** @ORM\Column(type="string", nullable=true, length=50) */
  44.     private $accueilliPrenom;
  45.     /**
  46.      * @ORM\Column(type="integer", nullable=true)
  47.      * @Assert\Range(min=1, max=130)
  48.      */
  49.     private $accueilliAge;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity="Departement")
  52.      * @ORM\JoinColumn(name="accueilli_departement_id", referencedColumnName="id")
  53.      */
  54.     private $accueilliDepartement;
  55.     /**
  56.      * @ORM\Column(type="text", nullable=true)
  57.      * @AppAssert\DoesNotContainsLink
  58.      */
  59.     private $commentaires;
  60.     /** @ORM\Column(type="boolean", nullable=false) */
  61.     private $autoriseContact;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity="Etablissement")
  64.      * @ORM\JoinColumn(name="etablissement_id", referencedColumnName="id", nullable=false)
  65.      */
  66.     private $etablissement;
  67.     /**
  68.      * @ORM\Column(type="string", length=255)
  69.      */
  70.     private $profil;
  71.     /**
  72.      * @ORM\Column(type="string", length=255, nullable=true)
  73.      */
  74.     private $adresse;
  75.     /**
  76.      * @ORM\Column(type="string", length=10, nullable=true)
  77.      */
  78.     private $cp;
  79.     /**
  80.      * @ORM\Column(type="string", length=255, nullable=true)
  81.      */
  82.     private $ville;
  83.     /**
  84.      * @ORM\Column(type="array", nullable=true)
  85.      */
  86.     private $niveau = [];
  87.     public function __construct()
  88.     {
  89.         $this->date = new DateTime();
  90.     }
  91.     public function setDate(DateTime $date): void
  92.     {
  93.         $this->date $date;
  94.     }
  95.     public function getDate(): DateTime
  96.     {
  97.         return $this->date;
  98.     }
  99.     public function setSujet(?string $sujet): void
  100.     {
  101.         $this->sujet $sujet;
  102.     }
  103.     public function getSujet(): ?string
  104.     {
  105.         return $this->sujet;
  106.     }
  107.     public function setInterlocuteurCivilite(?string $interlocuteurCivilite): void
  108.     {
  109.         $this->interlocuteurCivilite $interlocuteurCivilite;
  110.     }
  111.     public function getInterlocuteurCivilite(): ?string
  112.     {
  113.         return $this->interlocuteurCivilite;
  114.     }
  115.     public function setInterlocuteurNom(?string $nom): void
  116.     {
  117.         $this->interlocuteurNom $nom;
  118.     }
  119.     public function getInterlocuteurNom(): ?string
  120.     {
  121.         return $this->interlocuteurNom;
  122.     }
  123.     public function setInterlocuteurPrenom(?string $prenom): void
  124.     {
  125.         $this->interlocuteurPrenom $prenom;
  126.     }
  127.     public function getInterlocuteurPrenom(): ?string
  128.     {
  129.         return $this->interlocuteurPrenom;
  130.     }
  131.     public function setInterlocuteurTelephone(?string $telephone): void
  132.     {
  133.         $this->interlocuteurTelephone $telephone;
  134.     }
  135.     public function getInterlocuteurTelephone(): ?string
  136.     {
  137.         return $this->interlocuteurTelephone;
  138.     }
  139.     public function setInterlocuteurEmail(?string $email): void
  140.     {
  141.         $this->interlocuteurEmail $email;
  142.     }
  143.     public function getInterlocuteurEmail(): ?string
  144.     {
  145.         return $this->interlocuteurEmail;
  146.     }
  147.     public function setAccueilliCivilite(?string $accueilliCivilite): void
  148.     {
  149.         $this->accueilliCivilite $accueilliCivilite;
  150.     }
  151.     public function getAccueilliCivilite(): ?string
  152.     {
  153.         return $this->accueilliCivilite;
  154.     }
  155.     public function setAccueilliNom(?string $accueilliNom): void
  156.     {
  157.         $this->accueilliNom $accueilliNom;
  158.     }
  159.     public function getAccueilliNom(): ?string
  160.     {
  161.         return $this->accueilliNom;
  162.     }
  163.     public function setAccueilliPrenom(?string $accueilliPrenom): void
  164.     {
  165.         $this->accueilliPrenom $accueilliPrenom;
  166.     }
  167.     public function getAccueilliPrenom(): ?string
  168.     {
  169.         return $this->accueilliPrenom;
  170.     }
  171.     public function setAccueilliAge(?int $accueilliAge): void
  172.     {
  173.         $this->accueilliAge $accueilliAge;
  174.     }
  175.     public function getAccueilliAge(): ?int
  176.     {
  177.         return $this->accueilliAge;
  178.     }
  179.     public function setAccueilliDepartement(?Departement $accueilliDepartement): void
  180.     {
  181.         $this->accueilliDepartement $accueilliDepartement;
  182.     }
  183.     public function getAccueilliDepartement(): ?Departement
  184.     {
  185.         return $this->accueilliDepartement;
  186.     }
  187.     public function setCommentaires(?string $commentaires): void
  188.     {
  189.         $this->commentaires $commentaires;
  190.     }
  191.     public function getCommentaires(): ?string
  192.     {
  193.         return $this->commentaires;
  194.     }
  195.     public function setEtablissement(Etablissement $etablissement): void
  196.     {
  197.         $this->etablissement $etablissement;
  198.     }
  199.     public function getEtablissement(): ?Etablissement
  200.     {
  201.         return $this->etablissement;
  202.     }
  203.     public function setAutoriseContact(bool $autoriseContact): void
  204.     {
  205.         $this->autoriseContact $autoriseContact;
  206.     }
  207.     public function getAutoriseContact(): ?bool
  208.     {
  209.         return $this->autoriseContact;
  210.     }
  211.     public function getProfil(): ?string
  212.     {
  213.         return $this->profil;
  214.     }
  215.     public function setProfil(?string $profil): self
  216.     {
  217.         $this->profil $profil;
  218.         return $this;
  219.     }
  220.     public function getAdresse(): ?string
  221.     {
  222.         return $this->adresse;
  223.     }
  224.     public function setAdresse(?string $adresse): self
  225.     {
  226.         $this->adresse $adresse;
  227.         return $this;
  228.     }
  229.     public function getCp(): ?string
  230.     {
  231.         return $this->cp;
  232.     }
  233.     public function setCp(?string $cp): self
  234.     {
  235.         $this->cp $cp;
  236.         return $this;
  237.     }
  238.     public function getVille(): ?string
  239.     {
  240.         return $this->ville;
  241.     }
  242.     public function setVille(?string $ville): self
  243.     {
  244.         $this->ville $ville;
  245.         return $this;
  246.     }
  247.     public function getNiveau(): ?array
  248.     {
  249.         return $this->niveau;
  250.     }
  251.     public function setNiveau(?array $niveau): self
  252.     {
  253.         $this->niveau $niveau;
  254.         return $this;
  255.     }
  256. }