<?php
namespace App\Entity\Visa;
use App\Entity\User\User;
use App\Repository\Visa\VisaContactsRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VisaContactsRepository::class)]
class VisaContacts
{
#[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 $prenom;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nom;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $societe;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $adresseSociete;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $telephone;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $email;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $Lot;
/**
* @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;
#[ORM\ManyToOne(targetEntity: User::class)]
private $idUser;
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 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 getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getSociete(): ?string
{
return $this->societe;
}
public function setSociete(?string $societe): self
{
$this->societe = $societe;
return $this;
}
public function getAdresseSociete(): ?string
{
return $this->adresseSociete;
}
public function setAdresseSociete(?string $adresseSociete): self
{
$this->adresseSociete = $adresseSociete;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(?string $telephone): self
{
$this->telephone = $telephone;
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 getIdUser(): ?User
{
return $this->idUser;
}
public function setIdUser(?User $idUser): self
{
$this->idUser = $idUser;
return $this;
}
public function isRappel(): ?bool
{
return $this->rappel;
}
}