<?php
namespace App\Entity\Visa;
use App\Entity\User\User;
use App\Repository\Visa\VisaProjetsRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: \App\Repository\Visa\VisaBilansRepository::class)]
class VisaBilans
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: VisaProjets::class)]
private $idProjet;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $lot;
/**
* @var string
*
*/
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $email;
/**
* @var string
*
*/
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $copie_a;
/**
* @var string
*
*/
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $repondre_a;
/**
* @var string
*
*/
#[ORM\Column(type: 'text', nullable: true)]
private $preambule;
/**
* @var bool
*
*/
#[ORM\Column(type: 'boolean', length: 1, nullable: true)]
private $rappel;
/**
* @var \DateTime
*/
#[ORM\Column(type: 'datetime', nullable: true)]
private $rappel_date;
/**
* @var bool
*
*/
#[ORM\Column(type: 'boolean', length: 1, nullable: true)]
private $envoi_email;
public function getId(): ?int
{
return $this->id;
}
public function getIdProjet(): ?VisaProjets
{
return $this->idProjet;
}
public function setIdProjet(?VisaProjets $idProjet): self
{
$this->idProjet = $idProjet;
return $this;
}
public function getEnvoiEmail(): ?bool
{
return $this->envoi_email;
}
public function setEnvoiEmail(?bool $envoi_email): self
{
$this->envoi_email = $envoi_email;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getLot(): ?string
{
return $this->lot;
}
public function setLot(?string $lot): self
{
$this->lot = $lot;
return $this;
}
public function getRappel(): ?bool
{
return $this->rappel;
}
public function setRappel(?bool $rappel): self
{
if ($rappel != $this->rappel) {
if($rappel) $this->setRappelDate( new \DateTime());
else $this->clearRappelDate();
}
$this->rappel = $rappel;
return $this;
}
public function clearRappelDate() {
$this->rappel_date = null;
}
public function getRappelDate(): ?\DateTimeInterface
{
return $this->rappel_date;
}
public function setRappelDate(?\DateTimeInterface $rappel_date): self
{
$this->rappel_date = $rappel_date;
return $this;
}
public function getCopieA(): ?string
{
return $this->copie_a;
}
public function setCopieA(?string $copie_a): self
{
$this->copie_a = $copie_a;
return $this;
}
public function getRepondreA(): ?string
{
return $this->repondre_a;
}
public function setRepondreA(?string $repondre_a): self
{
$this->repondre_a = $repondre_a;
return $this;
}
public function getPreambule(): ?string
{
return $this->preambule;
}
public function setPreambule(?string $preambule): self
{
$this->preambule = $preambule;
return $this;
}
public function isRappel(): ?bool
{
return $this->rappel;
}
public function isEnvoiEmail(): ?bool
{
return $this->envoi_email;
}
}