src/Entity/Visa/VisaContacts.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Visa;
  3. use App\Entity\User\User;
  4. use App\Repository\Visa\VisaContactsRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassVisaContactsRepository::class)]
  8. class VisaContacts
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\ManyToOne(targetEntityVisaProjets::class)]
  15.     private $idProjet;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $prenom;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $nom;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private $societe;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $adresseSociete;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private $telephone;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $email;
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private $Lot;
  30.     /**
  31.      * @var string
  32.      *
  33.      */
  34.     #[ORM\Column(type'string'length255nullabletrue)]
  35.     private $copie_a;
  36.     /**
  37.      * @var string
  38.      *
  39.      */
  40.     #[ORM\Column(type'string'length255nullabletrue)]
  41.     private $repondre_a;
  42.     /**
  43.      * @var string
  44.      *
  45.      */
  46.     #[ORM\Column(type'text'nullabletrue)]
  47.     private $preambule;
  48.     /**
  49.      * @var bool
  50.      *
  51.      */
  52.     #[ORM\Column(type'boolean'length1nullabletrue)]
  53.     private $rappel;
  54.     /**
  55.      * @var \DateTime
  56.      */
  57.     #[ORM\Column(type'datetime'nullabletrue)]
  58.     private $rappel_date;
  59.     #[ORM\ManyToOne(targetEntityUser::class)]
  60.     private $idUser;
  61.     public function getRappel(): ?bool
  62.           {
  63.               return $this->rappel;
  64.           }
  65.     public function setRappel(?bool $rappel): self
  66.           {
  67.               if ($rappel != $this->rappel) {
  68.                   if($rappel$this->setRappelDate( new \DateTime());
  69.                   else $this->clearRappelDate();
  70.               }
  71.               $this->rappel $rappel;
  72.               return $this;
  73.           }
  74.     public function clearRappelDate() {
  75.               $this->rappel_date null;
  76.           }
  77.     public function getRappelDate(): ?\DateTimeInterface
  78.           {
  79.               return $this->rappel_date;
  80.           }
  81.     public function setRappelDate(?\DateTimeInterface $rappel_date): self
  82.           {
  83.               $this->rappel_date $rappel_date;
  84.               return $this;
  85.           }
  86.     public function getCopieA(): ?string
  87.           {
  88.               return $this->copie_a;
  89.           }
  90.     public function setCopieA(?string $copie_a): self
  91.           {
  92.               $this->copie_a $copie_a;
  93.               return $this;
  94.           }
  95.     public function getRepondreA(): ?string
  96.           {
  97.               return $this->repondre_a;
  98.           }
  99.     public function setRepondreA(?string $repondre_a): self
  100.           {
  101.               $this->repondre_a $repondre_a;
  102.               return $this;
  103.           }
  104.     public function getPreambule(): ?string
  105.           {
  106.               return $this->preambule;
  107.           }
  108.     public function setPreambule(?string $preambule): self
  109.           {
  110.               $this->preambule $preambule;
  111.               return $this;
  112.           }
  113.     public function getId(): ?int
  114.     {
  115.         return $this->id;
  116.     }
  117.     public function getIdProjet(): ?VisaProjets
  118.     {
  119.         return $this->idProjet;
  120.     }
  121.     public function setIdProjet(?VisaProjets $idProjet): self
  122.     {
  123.         $this->idProjet $idProjet;
  124.         return $this;
  125.     }
  126.     public function getPrenom(): ?string
  127.     {
  128.         return $this->prenom;
  129.     }
  130.     public function setPrenom(?string $prenom): self
  131.     {
  132.         $this->prenom $prenom;
  133.         return $this;
  134.     }
  135.     public function getNom(): ?string
  136.     {
  137.         return $this->nom;
  138.     }
  139.     public function setNom(?string $nom): self
  140.     {
  141.         $this->nom $nom;
  142.         return $this;
  143.     }
  144.     public function getSociete(): ?string
  145.     {
  146.         return $this->societe;
  147.     }
  148.     public function setSociete(?string $societe): self
  149.     {
  150.         $this->societe $societe;
  151.         return $this;
  152.     }
  153.     public function getAdresseSociete(): ?string
  154.     {
  155.         return $this->adresseSociete;
  156.     }
  157.     public function setAdresseSociete(?string $adresseSociete): self
  158.     {
  159.         $this->adresseSociete $adresseSociete;
  160.         return $this;
  161.     }
  162.     public function getTelephone(): ?string
  163.     {
  164.         return $this->telephone;
  165.     }
  166.     public function setTelephone(?string $telephone): self
  167.     {
  168.         $this->telephone $telephone;
  169.         return $this;
  170.     }
  171.     public function getEmail(): ?string
  172.     {
  173.         return $this->email;
  174.     }
  175.     public function setEmail(?string $email): self
  176.     {
  177.         $this->email $email;
  178.         return $this;
  179.     }
  180.     public function getLot(): ?string
  181.     {
  182.         return $this->Lot;
  183.     }
  184.     public function setLot(?string $Lot): self
  185.     {
  186.         $this->Lot $Lot;
  187.         return $this;
  188.     }
  189.     public function getIdUser(): ?User
  190.     {
  191.         return $this->idUser;
  192.     }
  193.     public function setIdUser(?User $idUser): self
  194.     {
  195.         $this->idUser $idUser;
  196.         return $this;
  197.     }
  198.     public function isRappel(): ?bool
  199.     {
  200.         return $this->rappel;
  201.     }
  202. }