src/Entity/Visa/VisaBilans.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\VisaProjetsRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClass\App\Repository\Visa\VisaBilansRepository::class)]
  8. class VisaBilans
  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 $lot;
  18.     /**
  19.      * @var string
  20.      *
  21.      */
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $email;
  24.     /**
  25.      * @var string
  26.      *
  27.      */
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private $copie_a;
  30.     /**
  31.      * @var string
  32.      *
  33.      */
  34.     #[ORM\Column(type'string'length255nullabletrue)]
  35.     private $repondre_a;
  36.     /**
  37.      * @var string
  38.      *
  39.      */
  40.     #[ORM\Column(type'text'nullabletrue)]
  41.     private $preambule;
  42.     /**
  43.      * @var bool
  44.      *
  45.      */
  46.     #[ORM\Column(type'boolean'length1nullabletrue)]
  47.     private $rappel;
  48.     /**
  49.      * @var \DateTime
  50.      */
  51.     #[ORM\Column(type'datetime'nullabletrue)]
  52.     private $rappel_date;
  53.     /**
  54.      * @var bool
  55.      *
  56.      */
  57.     #[ORM\Column(type'boolean'length1nullabletrue)]
  58.     private $envoi_email;
  59.     public function getId(): ?int
  60.              {
  61.                  return $this->id;
  62.              }
  63.     public function getIdProjet(): ?VisaProjets
  64.     {
  65.         return $this->idProjet;
  66.     }
  67.     public function setIdProjet(?VisaProjets $idProjet): self
  68.              {
  69.                  $this->idProjet $idProjet;
  70.          
  71.                  return $this;
  72.              }
  73.     public function getEnvoiEmail(): ?bool
  74.              {
  75.                  return $this->envoi_email;
  76.              }
  77.     public function setEnvoiEmail(?bool $envoi_email): self
  78.              {
  79.                  $this->envoi_email $envoi_email;
  80.          
  81.                  return $this;
  82.              }
  83.     public function getEmail(): ?string
  84.              {
  85.                  return $this->email;
  86.              }
  87.     public     function setEmail(?string $email): self
  88.              {
  89.                  $this->email $email;
  90.          
  91.                  return $this;
  92.              }
  93.     public function getLot(): ?string
  94.              {
  95.                  return $this->lot;
  96.              }
  97.     public function setLot(?string $lot): self
  98.              {
  99.                  $this->lot $lot;
  100.          
  101.                  return $this;
  102.              }
  103.     public function getRappel(): ?bool
  104.              {
  105.                  return $this->rappel;
  106.              }
  107.     public function setRappel(?bool $rappel): self
  108.              {
  109.                  if ($rappel != $this->rappel) {
  110.                      if($rappel$this->setRappelDate( new \DateTime());
  111.                      else $this->clearRappelDate();
  112.                  }
  113.                  $this->rappel $rappel;
  114.                  return $this;
  115.              }
  116.     public function clearRappelDate() {
  117.                  $this->rappel_date null;
  118.              }
  119.     public function getRappelDate(): ?\DateTimeInterface
  120.              {
  121.                  return $this->rappel_date;
  122.              }
  123.     public function setRappelDate(?\DateTimeInterface $rappel_date): self
  124.              {
  125.                  $this->rappel_date $rappel_date;
  126.                  return $this;
  127.              }
  128.     public function getCopieA(): ?string
  129.              {
  130.                  return $this->copie_a;
  131.              }
  132.     public function setCopieA(?string $copie_a): self
  133.              {
  134.                  $this->copie_a $copie_a;
  135.                  return $this;
  136.              }
  137.     public function getRepondreA(): ?string
  138.              {
  139.                  return $this->repondre_a;
  140.              }
  141.     public function setRepondreA(?string $repondre_a): self
  142.              {
  143.                  $this->repondre_a $repondre_a;
  144.                  return $this;
  145.              }
  146.     public function getPreambule(): ?string
  147.              {
  148.                  return $this->preambule;
  149.              }
  150.     public function setPreambule(?string $preambule): self
  151.              {
  152.                  $this->preambule $preambule;
  153.                  return $this;
  154.              }
  155.     public function isRappel(): ?bool
  156.     {
  157.         return $this->rappel;
  158.     }
  159.     public function isEnvoiEmail(): ?bool
  160.     {
  161.         return $this->envoi_email;
  162.     }
  163. }